sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1756006 - /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/CharacteristicTypeBuilder.java
Date Thu, 11 Aug 2016 16:26:02 GMT
Author: desruisseaux
Date: Thu Aug 11 16:26:02 2016
New Revision: 1756006

URL: http://svn.apache.org/viewvc?rev=1756006&view=rev
Log:
AttributeTypeBuilder cache must be cleared when a characteristic is removed.

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

Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/CharacteristicTypeBuilder.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/CharacteristicTypeBuilder.java?rev=1756006&r1=1756005&r2=1756006&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/CharacteristicTypeBuilder.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/CharacteristicTypeBuilder.java
[UTF-8] Thu Aug 11 16:26:02 2016
@@ -315,6 +315,7 @@ public final class CharacteristicTypeBui
         if (owner != null) {
             owner.characteristics.remove(owner.characteristics.lastIndexOf(this));
             // Note: a negative lastIndexOf(old) would be a bug in our algorithm.
+            owner.clearCache();
             owner = null;
         }
     }



Mime
View raw message