summaryrefslogtreecommitdiff
path: root/scripting/workben
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-03 15:06:41 +0200
committerNoel Grandin <noel@peralex.com>2013-05-06 11:45:55 +0200
commit7cba598a7ddcf02771ed31c8d8fce6f7e02ef715 (patch)
treedf44b82e914a29c971c7fa19c820563090d79aaf /scripting/workben
parent8be40d31d78723debd47f671544f480c1c606db7 (diff)
Java cleanup, delete some dead code
Change-Id: I4423cc7ec49769e256f73d9b7fba7b78f84f932f
Diffstat (limited to 'scripting/workben')
-rw-r--r--scripting/workben/installer/FileUpdater.java30
1 files changed, 9 insertions, 21 deletions
diff --git a/scripting/workben/installer/FileUpdater.java b/scripting/workben/installer/FileUpdater.java
index 1e75aef6177d..786b8f44bda8 100644
--- a/scripting/workben/installer/FileUpdater.java
+++ b/scripting/workben/installer/FileUpdater.java
@@ -37,14 +37,10 @@ public class FileUpdater {
try {
BufferedReader reader = new BufferedReader(new FileReader(in_file));
count = -1;
- for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
+ for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
count = count + 1;
- if(s != null) {
- s.trim();
- xmlArray[count] = s;
- }
- else
- break;
+ s.trim();
+ xmlArray[count] = s;
}
}
catch( IOException ioe ) {
@@ -111,14 +107,10 @@ public class FileUpdater {
try {
BufferedReader reader = new BufferedReader(new FileReader(in_file));
count = -1;
- for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
+ for (String s = reader.readLine(); s != null; s = reader.readLine()) { //</oor:node>
count = count + 1;
- if(s != null) {
- s.trim();
- xmlArray[count] = s;
- }
- else
- break;
+ s.trim();
+ xmlArray[count] = s;
}
}
catch( IOException ioe ) {
@@ -187,14 +179,10 @@ public class FileUpdater {
try {
BufferedReader reader = new BufferedReader(new FileReader(in_file));
count = -1;
- for (String s = reader.readLine(); s != null; s = reader.readLine()) {
+ for (String s = reader.readLine(); s != null; s = reader.readLine()) {
count = count + 1;
- if(s != null) {
- s.trim();
- xmlArray[count] = s;
- }
- else
- break;
+ s.trim();
+ xmlArray[count] = s;
}
}
catch( IOException ioe ) {