JAL-2591 Removed getHiddenRegions()==null checks which are always false
[jalview.git] / src / jalview / gui / AnnotationColumnChooser.java
index 9c2a1b9..5122f29 100644 (file)
@@ -244,7 +244,7 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements
         HiddenColumns oldHidden = av
                 .getAnnotationColumnSelectionState()
                 .getOldHiddenColumns();
-        if (oldHidden != null && oldHidden.getHiddenRegions() != null
+        if (oldHidden != null
                 && !oldHidden.getHiddenRegions().isEmpty())
         {
           for (Iterator<int[]> itr = oldHidden.getHiddenRegions()
@@ -727,7 +727,7 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements
 
     private static final String FILTER_BY_ANN_CACHE_KEY = "CACHE.SELECT_FILTER_BY_ANNOT";
 
-    public JvCacheableInputBox<String> searchBox = new JvCacheableInputBox<String>(
+    public JvCacheableInputBox<String> searchBox = new JvCacheableInputBox<>(
             FILTER_BY_ANN_CACHE_KEY);
 
     public SearchPanel(AnnotationColumnChooser aColChooser)