git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3438 spotless for 2.11.2.0
[jalview.git]
/
src
/
jalview
/
gui
/
structurechooser
/
StructureChooserQuerySource.java
diff --git
a/src/jalview/gui/structurechooser/StructureChooserQuerySource.java
b/src/jalview/gui/structurechooser/StructureChooserQuerySource.java
index
a4ae2c8
..
a4cf4ab
100644
(file)
--- a/
src/jalview/gui/structurechooser/StructureChooserQuerySource.java
+++ b/
src/jalview/gui/structurechooser/StructureChooserQuerySource.java
@@
-1,5
+1,7
@@
package jalview.gui.structurechooser;
package jalview.gui.structurechooser;
+import java.util.Locale;
+
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
@@
-108,7
+110,7
@@
public abstract class StructureChooserQuerySource
{
return false;
}
{
return false;
}
- seqName = seqName.toLowerCase();
+ seqName = seqName.toLowerCase(Locale.ROOT);
for (String ignoredEntry : ignoreList.split(","))
{
if (seqName.contains(ignoredEntry))
for (String ignoredEntry : ignoreList.split(","))
{
if (seqName.contains(ignoredEntry))
@@
-235,13
+237,17
@@
public abstract class StructureChooserQuerySource
if (refsAvailable > -1)
{
hasCanonical = true;
if (refsAvailable > -1)
{
hasCanonical = true;
- } else {
+ }
+ else
+ {
protWithoutCanon++;
}
hasUniprot = true;
protWithoutCanon++;
}
hasUniprot = true;
- } else {
+ }
+ else
+ {
protWithoutUni++;
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
//
// 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;
{
return tdbSource;