db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r1593123 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/DDUtils.java
Date Wed, 07 May 2014 19:29:31 GMT
Author: dag
Date: Wed May  7 19:29:31 2014
New Revision: 1593123

URL: http://svn.apache.org/r1593123
Log:
Fixed some odd formatting that made the code hard to read (comment
indentation).

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=1593123&r1=1593122&r2=1593123&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
May  7 19:29:31 2014
@@ -63,14 +63,15 @@ public	class	DDUtils
 
         ReferencedKeyConstraintDescriptor refCd;
 
-		/*
-		** There were no column names specified, just find
-		** the primary key on the table in question
-		*/
 		String[]	refColumnNames = otherConstraintInfo.getReferencedColumnNames();
+
 		if (refColumnNames == null ||
 			refColumnNames.length == 0)
 		{
+			/*
+			** There were no column names specified, just find
+			** the primary key on the table in question
+			*/
 			refCd = refTd.getPrimaryKey();
 			if (refCd == null)
 			{
@@ -102,14 +103,13 @@ public	class	DDUtils
 			}
 
 			return refCd;	
-		}
-
-		/*
-		** Check the referenced columns vs. each unique or primary key to
-		** see if they match the foreign key.
-		*/
+		} 
 		else
 		{
+			/*
+			** Check the referenced columns vs. each unique or primary key to
+			** see if they match the foreign key.
+			*/
 			ConstraintDescriptor cd;
 
 			ColumnDescriptorList colDl = getColumnDescriptors(dd, td, myColumnNames);



Mime
View raw message