commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1065210 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java
Date Sun, 30 Jan 2011 07:40:24 GMT
Author: bayard
Date: Sun Jan 30 07:40:24 2011
New Revision: 1065210

URL: http://svn.apache.org/viewvc?rev=1065210&view=rev
Log:
Added {} to if

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java?rev=1065210&r1=1065209&r2=1065210&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/exception/DefaultExceptionContext.java
Sun Jan 30 07:40:24 2011
@@ -58,8 +58,10 @@ class DefaultExceptionContext implements
         while (contextValueMap.containsKey(key)) {
             Object information = contextValueMap.get(key);
             if ((value == null && information == null)
-                    || (value != null && value.equals(information)))
+                    || (value != null && value.equals(information))) 
+            {
                 return this;
+            }
             key = label + "[" + ++i +"]";
         }
         contextValueMap.put(key, value);



Mime
View raw message