From 82eda00eddb7e3bb8ed6d2db13d60cf73dee1a1a Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 18 Sep 2009 15:01:48 +0000 Subject: [PATCH] Remove some more unnecessary parentheses --- src/helma/objectmodel/db/Relation.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/helma/objectmodel/db/Relation.java b/src/helma/objectmodel/db/Relation.java index 2e1f69dd..bc9f3d6f 100644 --- a/src/helma/objectmodel/db/Relation.java +++ b/src/helma/objectmodel/db/Relation.java @@ -381,20 +381,20 @@ public final class Relation { // get group by property groupby = props.getProperty("group"); - if ((groupby != null) && (groupby.trim().length() == 0)) { + if (groupby != null && groupby.trim().length() == 0) { groupby = null; } if (groupby != null) { groupbyOrder = props.getProperty("group.order"); - if ((groupbyOrder != null) && (groupbyOrder.trim().length() == 0)) { + if (groupbyOrder != null && groupbyOrder.trim().length() == 0) { groupbyOrder = null; } groupbyPrototype = props.getProperty("group.prototype"); - if ((groupbyPrototype != null) && (groupbyPrototype.trim().length() == 0)) { + if (groupbyPrototype != null && groupbyPrototype.trim().length() == 0) { groupbyPrototype = null; } @@ -409,17 +409,17 @@ public final class Relation { String local = props.getProperty("local"); String foreign = props.getProperty("foreign"); - if ((local != null) && (foreign != null)) { + if (local != null && foreign != null) { cnst.addElement(new Constraint(local, foreign, false)); columnName = local; } // parse additional contstraints from *.1 to *.9 - for (int i=1; i<10; i++) { + for (int i = 1; i < 10; i++) { local = props.getProperty("local."+i); foreign = props.getProperty("foreign."+i); - if ((local != null) && (foreign != null)) { + if (local != null && foreign != null) { cnst.addElement(new Constraint(local, foreign, false)); } }