[Libreoffice-commits] core.git: scripting/java
Robert Antoni Buj i Gelonch
robert.buj at gmail.com
Sun Oct 19 03:13:20 PDT 2014
scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java | 6 +++---
scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 2a0569b53d87cf5f0971d87a537e275ea5271d8c
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date: Wed Oct 8 16:55:54 2014 +0200
scripting: redundant cast to String
Change-Id: I5e048964cc7885a32c59ff8a9eb1fc5b9523e843
Reviewed-on: https://gerrit.libreoffice.org/11859
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
index 59004f0..424c259 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
@@ -331,8 +331,8 @@ class ScriptImpl implements XScript {
new StringTokenizer(full.substring(index), ":");
if (tokenizer.countTokens() > 2) {
- LogUtils.DEBUG("First token = " + (String)tokenizer.nextElement());
- wrappedException = (String)tokenizer.nextElement();
+ LogUtils.DEBUG("First token = " + tokenizer.nextToken());
+ wrappedException = tokenizer.nextToken();
LogUtils.DEBUG("wrapped exception = = " + wrappedException);
}
}
@@ -364,4 +364,4 @@ class ScriptImpl implements XScript {
}
}
-}
\ No newline at end of file
+}
diff --git a/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java b/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java
index 9d45332..1ca7cb5 100644
--- a/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java
+++ b/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java
@@ -86,8 +86,8 @@ public class ScriptDescriptor {
public void setClasspath(String classpath) {
StringTokenizer stk = new StringTokenizer(classpath, ":");
- while (stk.hasMoreElements()) {
- this.m_classpath.add((String) stk.nextElement());
+ while (stk.hasMoreTokens()) {
+ this.m_classpath.add(stk.nextToken());
}
}
More information about the Libreoffice-commits
mailing list