From 668b3c8eb3147308764004d090c33287e6dae9bd Mon Sep 17 00:00:00 2001 From: nickl- Date: Sat, 28 Oct 2017 06:28:05 +0200 Subject: [PATCH] Suppress deprecation Applet. --- src/main/javassist/tools/rmi/ObjectImporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/javassist/tools/rmi/ObjectImporter.java b/src/main/javassist/tools/rmi/ObjectImporter.java index 84502056..7650f5b9 100644 --- a/src/main/javassist/tools/rmi/ObjectImporter.java +++ b/src/main/javassist/tools/rmi/ObjectImporter.java @@ -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 Webserver. */ - 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(); -- 2.39.5