diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/icedteanp/java/sun/applet/GetMemberPluginCallRequest.java | 2 | ||||
-rw-r--r-- | plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugin/icedteanp/java/sun/applet/GetMemberPluginCallRequest.java b/plugin/icedteanp/java/sun/applet/GetMemberPluginCallRequest.java index 2cea3da..e9b71c2 100644 --- a/plugin/icedteanp/java/sun/applet/GetMemberPluginCallRequest.java +++ b/plugin/icedteanp/java/sun/applet/GetMemberPluginCallRequest.java @@ -50,7 +50,7 @@ public class GetMemberPluginCallRequest extends PluginCallRequest { String[] args = message.split(" "); // FIXME: Is it even possible to distinguish between null and void // here? - if (args[3] != "null" && args[3] != "void") + if (!"null".equals(args[3]) && !"void".equals(args[3])) object = AppletSecurityContextManager.getSecurityContext(0).getObject(Integer.parseInt(args[3])); setDone(true); } diff --git a/plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java b/plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java index d5edc6f..973a324 100644 --- a/plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java +++ b/plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java @@ -41,15 +41,15 @@ public class PluginCallRequestFactory { public PluginCallRequest getPluginCallRequest(String id, String message, Long reference) { - if (id == "member") { + if ("member".equals(id)) { return new GetMemberPluginCallRequest(message, reference); - } else if (id == "void") { + } else if ("void".equals(id)) { return new VoidPluginCallRequest(message, reference); - } else if (id == "window") { + } else if ("window".equals(id)) { return new GetWindowPluginCallRequest(message, reference); - } else if (id == "proxyinfo") { + } else if ("proxyinfo".equals(id)) { return new PluginProxyInfoRequest(message, reference); - } else if (id == "cookieinfo") { + } else if ("cookieinfo".equals(id)) { return new PluginCookieInfoRequest(message, reference); } else { throw new RuntimeException("Unknown plugin call request type requested from factory"); |