Author: angela Date: Thu Jan 24 13:57:36 2013 New Revision: 1438000 URL: http://svn.apache.org/viewvc?rev=1438000&view=rev Log: remove redundant casts
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElementFactory.java Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElementFactory.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElementFactory.java?rev=1438000&r1=1437999&r2=1438000&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElementFactory.java (original) +++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElementFactory.java Thu Jan 24 13:57:36 2013 @@ -21,11 +21,11 @@ import org.apache.jackrabbit.oak.api.Pro public class AstElementFactory { public AndImpl and(ConstraintImpl constraint1, ConstraintImpl constraint2) { - return new AndImpl((ConstraintImpl) constraint1, (ConstraintImpl) constraint2); + return new AndImpl(constraint1, constraint2); } public OrderingImpl ascending(DynamicOperandImpl operand) { - return new OrderingImpl((DynamicOperandImpl) operand, Order.ASCENDING); + return new OrderingImpl(operand, Order.ASCENDING); } public BindVariableValueImpl bindVariable(String bindVariableName) { @@ -46,7 +46,7 @@ public class AstElementFactory { } public ComparisonImpl comparison(DynamicOperandImpl operand1, Operator operator, StaticOperandImpl operand2) { - return new ComparisonImpl((DynamicOperandImpl) operand1, operator, (StaticOperandImpl) operand2); + return new ComparisonImpl(operand1, operator, operand2); } public DescendantNodeImpl descendantNode(String selectorName, String path) { @@ -101,11 +101,11 @@ public class AstElementFactory { } public NotImpl not(ConstraintImpl constraint) { - return new NotImpl((ConstraintImpl) constraint); + return new NotImpl(constraint); } public OrImpl or(ConstraintImpl constraint1, ConstraintImpl constraint2) { - return new OrImpl((ConstraintImpl) constraint1, (ConstraintImpl) constraint2); + return new OrImpl(constraint1, constraint2); } public PropertyExistenceImpl propertyExistence(String selectorName, String propertyName) {