]> source.dussan.org Git - javassist.git/commitdiff
Suppress deprecation Applet.
authornickl- <github@jigsoft.co.za>
Sat, 28 Oct 2017 04:28:05 +0000 (06:28 +0200)
committernickl- <github@jigsoft.co.za>
Sat, 28 Oct 2017 06:59:37 +0000 (08:59 +0200)
src/main/javassist/tools/rmi/ObjectImporter.java

index 84502056814c8cd846eccdfbc125b3e46571f3b2..7650f5b9196cd632c3361c4a5f27c96875c4c6b8 100644 (file)
@@ -18,7 +18,6 @@ package javassist.tools.rmi;
 
 import java.io.*;
 import java.net.*;
-import java.applet.Applet;
 import java.lang.reflect.*;
 
 /**
@@ -90,7 +89,8 @@ public class ObjectImporter implements java.io.Serializable {
      *
      * @param applet    the applet loaded from the <code>Webserver</code>.
      */
-    public ObjectImporter(Applet applet) {
+    public ObjectImporter(@SuppressWarnings("deprecation") java.applet.Applet applet) {
+        @SuppressWarnings("deprecation")
         URL codebase = applet.getCodeBase();
         orgServername = servername = codebase.getHost();
         orgPort = port = codebase.getPort();