db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1521816 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DDUtils.java
Date Wed, 11 Sep 2013 11:56:44 GMT
Author: kahatlen
Date: Wed Sep 11 11:56:44 2013
New Revision: 1521816

URL: http://svn.apache.org/r1521816
Log:
DERBY-6330: Simplify StringBuffer use, as they are mutable

Patch contributed by Dave Brosius.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DDUtils.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DDUtils.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DDUtils.java?rev=1521816&r1=1521815&r2=1521816&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DDUtils.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DDUtils.java Wed
Sep 11 11:56:44 2013
@@ -495,7 +495,7 @@ public	class	DDUtils
 			** of cycles , all the nodes in the cycle have same type of
 			** referential action.
 			**/
-			cycleString = cycleString.append(refActionType);
+			cycleString.append(refActionType);
 		}
 
 
@@ -553,7 +553,7 @@ public	class	DDUtils
 				//check for this is non self referencing cycles case
 				//In cases of cycle, whole cycle should have the same refAction
 				// value. Other wise we should throw an exception
-				cycleString = cycleString.append(raDeleteRule);
+				cycleString.append(raDeleteRule);
 				boolean isFormingCycle = (nextRefTd.getUUID().equals(actualTd.getUUID()));
 				if(isFormingCycle)
 				{



Mime
View raw message