db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1201025 - in /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile: FromBaseTable.java IntersectOrExceptNode.java RowResultSetNode.java SelectNode.java UnionNode.java sqlgrammar.jj
Date Fri, 11 Nov 2011 19:02:02 GMT
Author: rhillegas
Date: Fri Nov 11 19:02:01 2011
New Revision: 1201025

URL: http://svn.apache.org/viewvc?rev=1201025&view=rev
Log:
DERBY-5488: Eliminate needless Boolean object creation.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/IntersectOrExceptNode.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/RowResultSetNode.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/SelectNode.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnionNode.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java?rev=1201025&r1=1201024&r2=1201025&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java Fri
Nov 11 19:02:01 2011
@@ -2287,7 +2287,7 @@ public class FromBaseTable extends FromT
                     cvn.getOrderByList(),
                     cvn.getOffset(),
                     cvn.getFetchFirst(),
-                    new Boolean( cvn.hasJDBClimitClause() ),
+                    Boolean.valueOf( cvn.hasJDBClimitClause() ),
 					(correlationName != null) ? 
                         correlationName : getOrigTableName().getTableName(), 
 					resultColumns,

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/IntersectOrExceptNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/IntersectOrExceptNode.java?rev=1201025&r1=1201024&r2=1201025&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/IntersectOrExceptNode.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/IntersectOrExceptNode.java
Fri Nov 11 19:02:01 2011
@@ -335,7 +335,7 @@ public class IntersectOrExceptNode exten
                 newRcl,
                 offset,
                 fetchFirst,
-                new Boolean( hasJDBClimitClause ),
+                Boolean.valueOf( hasJDBClimitClause ),
                 getContextManager());
         }
 

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/RowResultSetNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/RowResultSetNode.java?rev=1201025&r1=1201024&r2=1201025&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/RowResultSetNode.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/RowResultSetNode.java
Fri Nov 11 19:02:01 2011
@@ -658,7 +658,7 @@ public class RowResultSetNode extends Fr
                 newRcl,
                 offset,
                 fetchFirst,
-                new Boolean( hasJDBClimitClause ),
+                Boolean.valueOf( hasJDBClimitClause ),
                 getContextManager());
         }
 

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/SelectNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/SelectNode.java?rev=1201025&r1=1201024&r2=1201025&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/SelectNode.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/SelectNode.java Fri
Nov 11 19:02:01 2011
@@ -1657,7 +1657,7 @@ public class SelectNode extends ResultSe
                 topList,
                 offset,
                 fetchFirst,
-                new Boolean( hasJDBClimitClause ),
+                Boolean.valueOf( hasJDBClimitClause ),
                 getContextManager());
         }
 

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnionNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnionNode.java?rev=1201025&r1=1201024&r2=1201025&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnionNode.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnionNode.java Fri Nov
11 19:02:01 2011
@@ -493,7 +493,7 @@ public class UnionNode extends SetOperat
                 newRcl,
                 offset,
                 fetchFirst,
-                new Boolean( hasJDBClimitClause ),
+                Boolean.valueOf( hasJDBClimitClause ),
                 getContextManager());
         }
 

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj?rev=1201025&r1=1201024&r2=1201025&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj Fri Nov
11 19:02:01 2011
@@ -3389,7 +3389,7 @@ preparableSelectStatement(boolean checkP
 				orderCols,
 				offsetClauses[ OFFSET_CLAUSE ],
 				offsetClauses[ FETCH_FIRST_CLAUSE ],
-                new Boolean( hasJDBClimitClause ),
+                Boolean.valueOf( hasJDBClimitClause ),
 				ReuseFactory.getInteger(forUpdateState),
 				(forUpdateState == CursorNode.READ_ONLY ? null : updateColumns ),
 				getContextManager());
@@ -8566,7 +8566,7 @@ insertColumnsAndSource(QueryTreeNode tar
 							orderCols,
                             offsetClauses[ OFFSET_CLAUSE ],
                             offsetClauses[ FETCH_FIRST_CLAUSE ],
-                            new Boolean( hasJDBClimitClause ),
+                            Boolean.valueOf( hasJDBClimitClause ),
 							getContextManager());
 	}
 	/* RESOLVE: Ignoring default values for now
@@ -8821,7 +8821,7 @@ subquery(int subqueryType, ValueNode lef
 										orderCols,
                                         offsetClauses[ OFFSET_CLAUSE ],
                                         offsetClauses[ FETCH_FIRST_CLAUSE ],
-                                        new Boolean( hasJDBClimitClause ),
+                                        Boolean.valueOf( hasJDBClimitClause ),
 										getContextManager());
 		return subqueryNode;
 	}
@@ -9298,7 +9298,7 @@ FromTable tableFactor() throws StandardE
 											derivedTable.getOrderByList(),
                                             derivedTable.getOffset(),
                                             derivedTable.getFetchFirst(),
-                                            new Boolean( derivedTable.hasJDBClimitClause()
),
+                                            Boolean.valueOf( derivedTable.hasJDBClimitClause()
),
 											correlationName,
 											derivedRCL,
 											((optionalTableClauses != null) ?
@@ -11084,7 +11084,7 @@ viewDefinition(Token beginToken) throws 
 								orderCols,
                                 offsetClauses[ OFFSET_CLAUSE ],
                                 offsetClauses[ FETCH_FIRST_CLAUSE ],
-                                new Boolean( hasJDBClimitClause ),
+                                Boolean.valueOf( hasJDBClimitClause ),
 								getContextManager());
 	}
 }



Mime
View raw message