fixes JAL-3840
authorJim Procter <jprocter@issues.jalview.org>
Wed, 9 Jun 2021 15:40:42 +0000 (16:40 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 9 Jun 2021 15:40:42 +0000 (16:40 +0100)
src/jalview/datamodel/ResidueCount.java

index b21dd77..6b52166 100644 (file)
@@ -301,15 +301,7 @@ public class ResidueCount
    */
   public int addGap()
   {
-    int newValue;
-    if (useIntCounts)
-    {
-      newValue = ++intCounts[GAP_COUNT];
-    }
-    else
-    {
-      newValue = ++counts[GAP_COUNT];
-    }
+    int newValue = increment(GAP_COUNT);
     return newValue;
   }