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:
committed by
Noel Grandin
parent
a8e723ed3e
commit
2a0569b53d
@@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user