Author: sebb Date: Wed Apr 5 13:27:14 2006 New Revision: 391788 URL: http://svn.apache.org/viewcvs?rev=391788&view=rev Log: Tidy up; add NLS markers
Modified: jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/util/BeanShellServer.java Modified: jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/util/BeanShellServer.java URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/util/BeanShellServer.java?rev=391788&r1=391787&r2=391788&view=diff ============================================================================== --- jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/util/BeanShellServer.java (original) +++ jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/util/BeanShellServer.java Wed Apr 5 13:27:14 2006 @@ -34,7 +34,7 @@ */ public class BeanShellServer implements Runnable { - transient private static Logger log = LoggingManager.getLoggerForClass(); + private static final Logger log = LoggingManager.getLoggerForClass(); private final int serverport; @@ -70,18 +70,18 @@ ClassLoader loader = Thread.currentThread().getContextClassLoader(); try { - Class Interpreter = loader.loadClass("bsh.Interpreter"); + Class Interpreter = loader.loadClass("bsh.Interpreter");//$NON-NLS-1$ Object instance = Interpreter.newInstance(); Class string = String.class; Class object = Object.class; - Method eval = Interpreter.getMethod("eval", new Class[] { string }); - Method setObj = Interpreter.getMethod("set", new Class[] { string, object }); - Method setInt = Interpreter.getMethod("set", new Class[] { string, int.class }); - Method source = Interpreter.getMethod("source", new Class[] { string }); + Method eval = Interpreter.getMethod("eval", new Class[] { string });//$NON-NLS-1$ + Method setObj = Interpreter.getMethod("set", new Class[] { string, object });//$NON-NLS-1$ + Method setInt = Interpreter.getMethod("set", new Class[] { string, int.class });//$NON-NLS-1$ + Method source = Interpreter.getMethod("source", new Class[] { string });//$NON-NLS-1$ - setObj.invoke(instance, new Object[] { "t", this }); - setInt.invoke(instance, new Object[] { "portnum", new Integer(serverport) }); + setObj.invoke(instance, new Object[] { "t", this });//$NON-NLS-1$ + setInt.invoke(instance, new Object[] { "portnum", new Integer(serverport) });//$NON-NLS-1$ if (serverfile.length() > 0) { try { @@ -92,8 +92,8 @@ // JDK1.4: if (t != null) log.warn(t.toString()); } } - eval.invoke(instance, new Object[] { "setAccessibility(true);" }); - eval.invoke(instance, new Object[] { "server(portnum);" }); + eval.invoke(instance, new Object[] { "setAccessibility(true);" });//$NON-NLS-1$ + eval.invoke(instance, new Object[] { "server(portnum);" });//$NON-NLS-1$ } catch (ClassNotFoundException e) { log.error("Beanshell Interpreter not found"); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]