JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / gui / structurechooser / StructureChooserQuerySource.java
index a4ae2c8..a4cf4ab 100644 (file)
@@ -1,5 +1,7 @@
 package jalview.gui.structurechooser;
 
+import java.util.Locale;
+
 import java.util.Collection;
 import java.util.List;
 import java.util.Objects;
@@ -108,7 +110,7 @@ public abstract class StructureChooserQuerySource
     {
       return false;
     }
-    seqName = seqName.toLowerCase();
+    seqName = seqName.toLowerCase(Locale.ROOT);
     for (String ignoredEntry : ignoreList.split(","))
     {
       if (seqName.contains(ignoredEntry))
@@ -235,13 +237,17 @@ public abstract class StructureChooserQuerySource
           if (refsAvailable > -1)
           {
             hasCanonical = true;
-          } else {
+          }
+          else
+          {
             protWithoutCanon++;
           }
           hasUniprot = true;
-        } else {
+        }
+        else
+        {
           protWithoutUni++;
-          
+
         }
       }
     }
@@ -249,7 +255,8 @@ public abstract class StructureChooserQuerySource
     // logic: all canonicals - no fetchdb
     // some uniprot no canonicals: defer to PDB, user can optionally fetch
     //
-    if (hasProtein && hasCanonical && !hasNA && protWithoutCanon == 0 && protWithoutUni == 0)
+    if (hasProtein && hasCanonical && !hasNA && protWithoutCanon == 0
+            && protWithoutUni == 0)
 
     {
       return tdbSource;