remove empty if statements
Project: http://git-wip-us.apache.org/repos/asf/oodt/repo Commit: http://git-wip-us.apache.org/repos/asf/oodt/commit/a8934d06 Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/a8934d06 Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/a8934d06 Branch: refs/heads/avrorpc Commit: a8934d06a1887f5eaf607091621c8cb9c93740ab Parents: 5c5f0cb Author: Tom Barber <[email protected]> Authored: Sun Jan 10 22:29:20 2016 +0000 Committer: Tom Barber <[email protected]> Committed: Sun Jan 10 22:29:20 2016 +0000 ---------------------------------------------------------------------- .../oodt/cas/filemgr/browser/controller/TableListener.java | 2 +- .../java/org/apache/oodt/cas/pushpull/expressions/Method.java | 4 ++-- .../main/java/org/apache/oodt/cas/resource/examples/LongJob.java | 2 +- .../java/org/apache/oodt/cas/resource/util/XmlStructFactory.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/oodt/blob/a8934d06/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java ---------------------------------------------------------------------- diff --git a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java index 48544c9..7f49328 100644 --- a/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java +++ b/app/fmbrowser/src/main/java/org/apache/oodt/cas/filemgr/browser/controller/TableListener.java @@ -145,7 +145,7 @@ public class TableListener implements MouseListener, ActionListener { HSSFRow row = sheet.createRow((short) k + 1); i = 0; for (int j = 0; j < table.getRow(0).getComponentCount(); j++) { - if (!table.hiddenCols.contains(new Integer(j))) { + if (!table.hiddenCols.contains(j)) { row.createCell((short) i).setCellValue( (table.getRow(k)).getText(j)); i++; http://git-wip-us.apache.org/repos/asf/oodt/blob/a8934d06/pushpull/src/main/java/org/apache/oodt/cas/pushpull/expressions/Method.java ---------------------------------------------------------------------- diff --git a/pushpull/src/main/java/org/apache/oodt/cas/pushpull/expressions/Method.java b/pushpull/src/main/java/org/apache/oodt/cas/pushpull/expressions/Method.java index 783d332..ed1991c 100644 --- a/pushpull/src/main/java/org/apache/oodt/cas/pushpull/expressions/Method.java +++ b/pushpull/src/main/java/org/apache/oodt/cas/pushpull/expressions/Method.java @@ -72,7 +72,7 @@ public class Method { if (nextLoc >= 0) { switch (argTypes.get(nextLoc)) { case INT: - addArg(new Variable(null, new Integer(value))); + addArg(new Variable(null, Integer.valueOf(value))); break; case STRING: addArg(new Variable(null, value)); @@ -151,7 +151,7 @@ public class Method { break; } } - output.addLast(new Variable(null, new Integer( + output.addLast(new Variable(null, Integer.valueOf( variableIntString.toString()))); i = k - 1; break; http://git-wip-us.apache.org/repos/asf/oodt/blob/a8934d06/resource/src/main/java/org/apache/oodt/cas/resource/examples/LongJob.java ---------------------------------------------------------------------- diff --git a/resource/src/main/java/org/apache/oodt/cas/resource/examples/LongJob.java b/resource/src/main/java/org/apache/oodt/cas/resource/examples/LongJob.java index 1e4684c..77f71e4 100644 --- a/resource/src/main/java/org/apache/oodt/cas/resource/examples/LongJob.java +++ b/resource/src/main/java/org/apache/oodt/cas/resource/examples/LongJob.java @@ -55,7 +55,7 @@ public class LongJob implements JobInstance, JobMetadata { NameValueJobInput input = (NameValueJobInput) in; int waitTime; - waitTime = new Integer(input.getValue("wait")); + waitTime = Integer.valueOf(input.getValue("wait")); System.out.println("LongJob running for " + waitTime + " sec"); http://git-wip-us.apache.org/repos/asf/oodt/blob/a8934d06/resource/src/main/java/org/apache/oodt/cas/resource/util/XmlStructFactory.java ---------------------------------------------------------------------- diff --git a/resource/src/main/java/org/apache/oodt/cas/resource/util/XmlStructFactory.java b/resource/src/main/java/org/apache/oodt/cas/resource/util/XmlStructFactory.java index b8f5409..7377edd 100644 --- a/resource/src/main/java/org/apache/oodt/cas/resource/util/XmlStructFactory.java +++ b/resource/src/main/java/org/apache/oodt/cas/resource/util/XmlStructFactory.java @@ -74,7 +74,7 @@ public final class XmlStructFactory { .getAttribute("envReplace")) ? PathUtils .doDynamicReplacement(resourceNodeRoot.getAttribute("ip")) : resourceNodeRoot.getAttribute("ip")); - capacity = new Integer(resourceNodeRoot.getAttribute("capacity")); + capacity = Integer.valueOf(resourceNodeRoot.getAttribute("capacity")); } catch (Exception e) { LOG.log(Level.SEVERE, e.getMessage()); }
