repositories
/
TD_SR.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TD3: Remove deprecation warnings.
[TD_SR.git]
/
TD3
/
exemples
/
javarmi
/
hello
/
HelloClient.java
diff --git
a/TD3/exemples/javarmi/hello/HelloClient.java
b/TD3/exemples/javarmi/hello/HelloClient.java
index 0d0eeeadccaa53681b819c7702496f3966d13dc4..482a5e8f0b0ee20e0a096fb8900a11c1815c0afb 100644
(file)
--- a/
TD3/exemples/javarmi/hello/HelloClient.java
+++ b/
TD3/exemples/javarmi/hello/HelloClient.java
@@
-1,11
+1,10
@@
package exemples.javarmi.hello;
import java.rmi.Naming;
package exemples.javarmi.hello;
import java.rmi.Naming;
-import java.rmi.RMISecurityManager;
public class HelloClient {
public static void main(String[] args){
/* lance le SecurityManager */
public class HelloClient {
public static void main(String[] args){
/* lance le SecurityManager */
- System.setSecurityManager(new
RMI
SecurityManager());
+ System.setSecurityManager(new SecurityManager());
try {
String server = args[0];
int port = Integer.parseInt(args[1]);
try {
String server = args[0];
int port = Integer.parseInt(args[1]);