JAL-3383 JAL-3253-applet
[jalview.git] / src / jalview / datamodel / features / FeatureStore.java
index fe575e0..ccd8b66 100644 (file)
@@ -316,10 +316,7 @@ public abstract class FeatureStore implements FeatureStoreI
    * Adds one feature to the IntervalStore that can manage nested features
    * (creating the IntervalStore if necessary)
    */
-  protected synchronized void addNestedFeature(SequenceFeature feature)
-  {
-    features.add(feature);
-  }
+  abstract protected void addNestedFeature(SequenceFeature feature);
 
   /**
    * Adds the feature to the list of non-positional features (with lazy
@@ -366,9 +363,12 @@ public abstract class FeatureStore implements FeatureStoreI
               && listContains(contactFeatureStarts, feature);
     }
 
-    return features == null ? false : features.contains(feature);
+    return features == null ? false : containsFeature(feature);
   }
 
+
+  abstract protected boolean containsFeature(SequenceFeature feature);
+
   /**
    * Deletes the given feature from the store, returning true if it was found
    * (and deleted), else false. This method makes no assumption that the feature