sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1768707 - /sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java
Date Tue, 08 Nov 2016 14:55:22 GMT
Author: desruisseaux
Date: Tue Nov  8 14:55:22 2016
New Revision: 1768707

URL: http://svn.apache.org/viewvc?rev=1768707&view=rev
Log:
Remove a hack for GeoAPI 3.0.0 which is no longer needed with GeoAPI 3.0.1.

Modified:
    sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java

Modified: sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java
URL: http://svn.apache.org/viewvc/sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java?rev=1768707&r1=1768706&r2=1768707&view=diff
==============================================================================
--- sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java [UTF-8] (original)
+++ sis/trunk/core/sis-utility/src/main/java/org/apache/sis/util/iso/Types.java [UTF-8] Tue
Nov  8 14:55:22 2016
@@ -624,16 +624,6 @@ public final class Types extends Static
         if (name == null || name.isEmpty()) {
             return null;
         }
-        // -------- Begin workaround for GeoAPI 3.0 (TODO: remove after upgrade to GeoAPI
3.1) ------------
-        final String typeName = codeType.getName();
-        try {
-            // Forces initialization of the given class in order
-            // to register its list of static final constants.
-            Class.forName(typeName, true, codeType.getClassLoader());
-        } catch (ClassNotFoundException e) {
-            throw new TypeNotPresentException(typeName, e); // Should never happen.
-        }
-        // -------- End workaround ------------------------------------------------------------------------
         return CodeList.valueOf(codeType, new CodeListFilter(name, canCreate));
     }
 



Mime
View raw message