sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jso...@apache.org
Subject svn commit: r1755477 - /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java
Date Mon, 08 Aug 2016 08:14:31 GMT
Author: jsorel
Date: Mon Aug  8 08:14:31 2016
New Revision: 1755477

URL: http://svn.apache.org/viewvc?rev=1755477&view=rev
Log:
Fix updating default geometry attribute type class cache in feature type builder

Modified:
    sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java

Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java?rev=1755477&r1=1755476&r2=1755477&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/FeatureTypeBuilder.java
[UTF-8] Mon Aug  8 08:14:31 2016
@@ -784,6 +784,9 @@ public class FeatureTypeBuilder extends
             // unless builder state has been changed in another thread before this method
completed.
             throw new CorruptedObjectException();
         }
+        if (old == defaultGeometry) {
+            defaultGeometry = (AttributeTypeBuilder<?>) replacement;
+        }
         clearCache();
     }
 



Mime
View raw message