empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1516891 - /empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
Date Fri, 23 Aug 2013 15:33:29 GMT
Author: doebele
Date: Fri Aug 23 15:33:28 2013
New Revision: 1516891

URL: http://svn.apache.org/r1516891
Log:
EMPIREDB-190
improvement

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java

Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java?rev=1516891&r1=1516890&r2=1516891&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java (original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java Fri
Aug 23 15:33:28 2013
@@ -100,6 +100,9 @@ public final class ObjectUtils
     @SuppressWarnings("unchecked")
     public static boolean compareEqual(Object o1, Object o2)
     {
+    	// simple case
+    	if (o1==o2)
+    		return true;
         // Check for Empty Values
         if (isEmpty(o1))
             return isEmpty(o2);



Mime
View raw message