scripting: redundant cast to String

Change-Id: I5e048964cc7885a32c59ff8a9eb1fc5b9523e843
Reviewed-on: https://gerrit.libreoffice.org/11859
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Robert Antoni Buj i Gelonch
2014-10-08 16:55:54 +02:00
committed by Noel Grandin
parent a8e723ed3e
commit 2a0569b53d
2 changed files with 5 additions and 5 deletions

View File

@@ -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 {
}
}
}
}

View File

@@ -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());
}
}