From 7cba598a7ddcf02771ed31c8d8fce6f7e02ef715 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 May 2013 15:06:41 +0200 Subject: Java cleanup, delete some dead code Change-Id: I4423cc7ec49769e256f73d9b7fba7b78f84f932f --- scripting/workben/installer/FileUpdater.java | 30 +++++++++------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'scripting/workben/installer') 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()) { // + 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 ) { @@ -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()) { // + 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 ) { @@ -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 ) { -- cgit