Kaydet (Commit) 2a0569b5 authored tarafından Robert Antoni Buj i Gelonch's avatar Robert Antoni Buj i Gelonch Kaydeden (comit) Noel Grandin

scripting: redundant cast to String

Change-Id: I5e048964cc7885a32c59ff8a9eb1fc5b9523e843
Reviewed-on: https://gerrit.libreoffice.org/11859Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst a8e723ed
...@@ -331,8 +331,8 @@ class ScriptImpl implements XScript { ...@@ -331,8 +331,8 @@ class ScriptImpl implements XScript {
new StringTokenizer(full.substring(index), ":"); new StringTokenizer(full.substring(index), ":");
if (tokenizer.countTokens() > 2) { if (tokenizer.countTokens() > 2) {
LogUtils.DEBUG("First token = " + (String)tokenizer.nextElement()); LogUtils.DEBUG("First token = " + tokenizer.nextToken());
wrappedException = (String)tokenizer.nextElement(); wrappedException = tokenizer.nextToken();
LogUtils.DEBUG("wrapped exception = = " + wrappedException); LogUtils.DEBUG("wrapped exception = = " + wrappedException);
} }
} }
...@@ -364,4 +364,4 @@ class ScriptImpl implements XScript { ...@@ -364,4 +364,4 @@ class ScriptImpl implements XScript {
} }
} }
} }
\ No newline at end of file
...@@ -86,8 +86,8 @@ public class ScriptDescriptor { ...@@ -86,8 +86,8 @@ public class ScriptDescriptor {
public void setClasspath(String classpath) { public void setClasspath(String classpath) {
StringTokenizer stk = new StringTokenizer(classpath, ":"); StringTokenizer stk = new StringTokenizer(classpath, ":");
while (stk.hasMoreElements()) { while (stk.hasMoreTokens()) {
this.m_classpath.add((String) stk.nextElement()); this.m_classpath.add(stk.nextToken());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment