sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jso...@apache.org
Subject svn commit: r1755510 - /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/AttributeTypeBuilder.java
Date Mon, 08 Aug 2016 15:18:30 GMT
Author: jsorel
Date: Mon Aug  8 15:18:30 2016
New Revision: 1755510

URL: http://svn.apache.org/viewvc?rev=1755510&view=rev
Log:
Fix identifier count not decremented when removing identifier property

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

Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/AttributeTypeBuilder.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/AttributeTypeBuilder.java?rev=1755510&r1=1755509&r2=1755510&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/AttributeTypeBuilder.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/builder/AttributeTypeBuilder.java
[UTF-8] Mon Aug  8 15:18:30 2016
@@ -654,6 +654,17 @@ public final class AttributeTypeBuilder<
     }
 
     /**
+     * {@inheritDoc}
+     */
+    @Override
+    public void remove() {
+        if (isIdentifier && owner()!=null) {
+            owner().identifierCount--;
+        }
+        super.remove();
+    }
+
+    /**
      * Builds the attribute type from the information specified to this builder.
      * If a type has already been built and this builder state has not changed since the
type creation,
      * then the previously created {@code AttributeType} instance is returned.



Mime
View raw message