sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1511227 - /sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/PrimitiveTypeProperties.java
Date Wed, 07 Aug 2013 09:30:27 GMT
Author: desruisseaux
Date: Wed Aug  7 09:30:27 2013
New Revision: 1511227

URL: http://svn.apache.org/r1511227
Log:
Remove an erroneous assertion.

Modified:
    sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/PrimitiveTypeProperties.java

Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/PrimitiveTypeProperties.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/PrimitiveTypeProperties.java?rev=1511227&r1=1511226&r2=1511227&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/PrimitiveTypeProperties.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/PrimitiveTypeProperties.java
[UTF-8] Wed Aug  7 09:30:27 2013
@@ -102,7 +102,8 @@ public final class PrimitiveTypeProperti
      * @return The property associated to the given instance, or {@code null} if none.
      */
     public static Object property(final Object primitive) {
-        assert isValidKey(primitive) : primitive;
+        // No 'assert isValidKey(primitive)' because this method is sometime invoked
+        // only after a brief inspection (e.g. 'NilReason.mayBeNil(Object)' method).
         synchronized (SENTINEL_VALUES) {
             return SENTINEL_VALUES.get(primitive);
         }



Mime
View raw message