diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-07 10:53:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 09:41:31 +0200 |
commit | 9851925959c564e37235da29b3bd347ff1dc3d01 (patch) | |
tree | 8f27abcd3b413c9c7da197552ed27140da70e5f4 | |
parent | 5656fe58a0e2083be45c0b9ca7aff41054d7146a (diff) |
java: return value of trim() ignored
Change-Id: If4cd3eb3e6db0c095796b0ff018162e855afa38c
-rw-r--r-- | qadevOOo/runner/convwatch/IniFile.java | 1 | ||||
-rw-r--r-- | qadevOOo/runner/graphical/IniFile.java | 1 | ||||
-rw-r--r-- | scripting/workben/installer/FileUpdater.java | 3 | ||||
-rw-r--r-- | scripting/workben/installer/InstUtil.java | 6 |
4 files changed, 0 insertions, 11 deletions
diff --git a/qadevOOo/runner/convwatch/IniFile.java b/qadevOOo/runner/convwatch/IniFile.java index b02ddf3ebaf8..58f39e9e4c38 100644 --- a/qadevOOo/runner/convwatch/IniFile.java +++ b/qadevOOo/runner/convwatch/IniFile.java @@ -241,7 +241,6 @@ class IniFile int nEqual = sLine.indexOf("="); if (nEqual >= 0) { - sLine.substring(0, nEqual).trim(); String sValue = sLine.substring(nEqual + 1).trim(); return sValue; } diff --git a/qadevOOo/runner/graphical/IniFile.java b/qadevOOo/runner/graphical/IniFile.java index f3bd88b764cd..9640e6076a73 100644 --- a/qadevOOo/runner/graphical/IniFile.java +++ b/qadevOOo/runner/graphical/IniFile.java @@ -296,7 +296,6 @@ public class IniFile implements Enumeration<String> int nEqual = sLine.indexOf("="); if (nEqual >= 0) { - sLine.substring(0, nEqual).trim(); String sValue = sLine.substring(nEqual + 1).trim(); return sValue; } 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) == '[') { |