java: no need to call String.valueOf to append to a String

Change-Id: I5ef45b971d24dde814ab8cbb2e9503d9da4f0d73
This commit is contained in:
Noel Grandin
2014-10-16 12:51:54 +02:00
parent 3beae0f05d
commit 12b01b920f
24 changed files with 54 additions and 56 deletions

View File

@@ -241,8 +241,7 @@ class ScriptImpl implements XScript {
Class<?> c = scriptLoader.loadClass(className);
long end = new java.util.Date().getTime();
LogUtils.DEBUG("loadClass took: " + String.valueOf(end - start)
+ "milliseconds");
LogUtils.DEBUG("loadClass took: " + (end - start) + "milliseconds");
try {
LogUtils.DEBUG("class loaded ... ");
@@ -272,8 +271,7 @@ class ScriptImpl implements XScript {
long start = new java.util.Date().getTime();
result = script.invoke(invocationArgs);
long end = new java.util.Date().getTime();
LogUtils.DEBUG("invoke took: " + String.valueOf(end - start)
+ "milliseconds");
LogUtils.DEBUG("invoke took: " + (end - start) + "milliseconds");
} catch (java.lang.IllegalArgumentException iae) {
ScriptFrameworkErrorException e2 = new ScriptFrameworkErrorException(
iae.getMessage(), null, metaData.getLanguageName(),