package jalview.gui.structurechooser;
+import java.util.Locale;
+
import java.util.Collection;
import java.util.List;
import java.util.Objects;
{
return false;
}
- seqName = seqName.toLowerCase();
+ seqName = seqName.toLowerCase(Locale.ROOT);
for (String ignoredEntry : ignoreList.split(","))
{
if (seqName.contains(ignoredEntry))
if (refsAvailable > -1)
{
hasCanonical = true;
- } else {
+ }
+ else
+ {
protWithoutCanon++;
}
hasUniprot = true;
- } else {
+ }
+ else
+ {
protWithoutUni++;
-
+
}
}
}
// 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;