diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-16 12:51:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-17 08:26:19 +0200 |
commit | 12b01b920f42666db84c8be1c9b6fd89a86eea4e (patch) | |
tree | 35a462009765a838e1381fe5d7614caed450daef /scripting/java | |
parent | 3beae0f05d1c8c976dfcebe02c8830752d708c74 (diff) |
java: no need to call String.valueOf to append to a String
Change-Id: I5ef45b971d24dde814ab8cbb2e9503d9da4f0d73
Diffstat (limited to 'scripting/java')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java b/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java index 881ae816cce8..a27b5e9755c4 100644 --- a/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java +++ b/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java @@ -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(), |