From 6ca1a9a369b10703da9af8f8a1ced0f3b02ae5c2 Mon Sep 17 00:00:00 2001 From: Deepak Bhole Date: Mon, 6 Dec 2010 15:34:01 -0500 Subject: Fixed indentation and spacing for all .java files. Added a new .settings directory which contains Eclipse preferences for code style. --- .../java/sun/applet/PluginCallRequestFactory.java | 28 ++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java') diff --git a/plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java b/plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java index 69cec35..d5edc6f 100644 --- a/plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java +++ b/plugin/icedteanp/java/sun/applet/PluginCallRequestFactory.java @@ -35,27 +35,25 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ - package sun.applet; - public class PluginCallRequestFactory { - - public PluginCallRequest getPluginCallRequest(String id, String message, Long reference) { - - if (id == "member") { - return new GetMemberPluginCallRequest(message, reference); - } else if (id == "void") { - return new VoidPluginCallRequest(message, reference); - } else if (id == "window") { - return new GetWindowPluginCallRequest(message, reference); - } else if (id == "proxyinfo") { + + public PluginCallRequest getPluginCallRequest(String id, String message, Long reference) { + + if (id == "member") { + return new GetMemberPluginCallRequest(message, reference); + } else if (id == "void") { + return new VoidPluginCallRequest(message, reference); + } else if (id == "window") { + return new GetWindowPluginCallRequest(message, reference); + } else if (id == "proxyinfo") { return new PluginProxyInfoRequest(message, reference); } else if (id == "cookieinfo") { return new PluginCookieInfoRequest(message, reference); } else { - throw new RuntimeException ("Unknown plugin call request type requested from factory"); - } - } + throw new RuntimeException("Unknown plugin call request type requested from factory"); + } + } } -- cgit v1.2.3