sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1795379 - /sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/MetadataSource.java
Date Tue, 16 May 2017 22:04:52 GMT
Author: desruisseaux
Date: Tue May 16 22:04:52 2017
New Revision: 1795379

URL: http://svn.apache.org/viewvc?rev=1795379&view=rev
Log:
Fix a bug that prevented the cache from being used.

Modified:
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/MetadataSource.java

Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/MetadataSource.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/MetadataSource.java?rev=1795379&r1=1795378&r2=1795379&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/MetadataSource.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/MetadataSource.java
[UTF-8] Tue May 16 22:04:52 2017
@@ -578,6 +578,7 @@ public class MetadataSource implements A
     private Map<String,String> asNameMap(final Class<?> type) throws ClassCastException
{
         assert Thread.holdsLock(this);
         if (type != lastNameMapType) {
+            lastNameMapType = type;
             lastNameMap = standard.asNameMap(type, KeyNamePolicy.METHOD_NAME, KeyNamePolicy.UML_IDENTIFIER);
         }
         return lastNameMap;



Mime
View raw message