summaryrefslogtreecommitdiff
path: root/scripting/workben
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-07 10:53:02 +0200
committerNoel Grandin <noel@peralex.com>2014-08-12 09:41:31 +0200
commit9851925959c564e37235da29b3bd347ff1dc3d01 (patch)
tree8f27abcd3b413c9c7da197552ed27140da70e5f4 /scripting/workben
parent5656fe58a0e2083be45c0b9ca7aff41054d7146a (diff)
java: return value of trim() ignored
Change-Id: If4cd3eb3e6db0c095796b0ff018162e855afa38c
Diffstat (limited to 'scripting/workben')
-rw-r--r--scripting/workben/installer/FileUpdater.java3
-rw-r--r--scripting/workben/installer/InstUtil.java6
2 files changed, 0 insertions, 9 deletions
diff --git a/scripting/workben/installer/FileUpdater.java b/scripting/workben/installer/FileUpdater.java
index 11f24e719f07..558c0c4c21d2 100644
--- a/scripting/workben/installer/FileUpdater.java
+++ b/scripting/workben/installer/FileUpdater.java
@@ -38,7 +38,6 @@ public class FileUpdater {
count = -1;
for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
count = count + 1;
- s.trim();
xmlArray[count] = s;
}
reader.close();
@@ -107,7 +106,6 @@ public class FileUpdater {
count = -1;
for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
count = count + 1;
- s.trim();
xmlArray[count] = s;
}
reader.close();
@@ -176,7 +174,6 @@ public class FileUpdater {
count = -1;
for (String s = reader.readLine(); s != null; s = reader.readLine()) {
count = count + 1;
- s.trim();
xmlArray[count] = s;
}
reader.close();
diff --git a/scripting/workben/installer/InstUtil.java b/scripting/workben/installer/InstUtil.java
index 154104175100..dc4bb37646e4 100644
--- a/scripting/workben/installer/InstUtil.java
+++ b/scripting/workben/installer/InstUtil.java
@@ -186,13 +186,11 @@ public class InstUtil {
BufferedReader reader = new BufferedReader(new FileReader(logFile));
for (String s = reader.readLine(); s != null; s = reader.readLine()) {
- s.trim();
if( s.indexOf( "IDE Install" ) != -1 ) {
int pathStart = s.indexOf( "=" ) + 2;
installPath = s.substring( pathStart, s.length() );
int pathEnd = installPath.indexOf( ";");
installPath = installPath.substring( 0, pathEnd ) +File.separator;
- installPath.trim();
break;
}
}
@@ -214,19 +212,16 @@ public class InstUtil {
String version = "";
for (String s = reader.readLine(); s != null; s = reader.readLine()) {
- s.trim();
if( s.indexOf( "jEdit home directory is" ) != -1 ) {
int pathStart = new String( "[message] jEdit: jEdit home directory is " ).length();
installPath = s.substring( pathStart, s.length() ) +File.separator;
System.out.println( "installPath 1" + installPath );
- installPath.trim();
jeditDetails[0] = installPath;
}
if( s.indexOf( "jEdit: jEdit version" ) != -1 ) {
int versionStart = s.indexOf( "version" ) + 8;
System.out.println( "versionStart is: " + versionStart );
version = s.substring( versionStart, s.length() );
- version.trim();
System.out.println( "jEdit version is: " + version );
jeditDetails[1] = version;
}
@@ -278,7 +273,6 @@ public class InstUtil {
Properties results = new Properties();
for (String s = reader.readLine(); s != null; s = reader.readLine()) {
- s.trim();
if (s.length() == 0)
continue;
if (s.charAt(0) == '[') {