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-4290 new CommandsTest.headlessOrGuiImageOutputTest - uses CommandLineOperations...
[jalview.git]
/
src
/
jalview
/
io
/
FileFormats.java
diff --git
a/src/jalview/io/FileFormats.java
b/src/jalview/io/FileFormats.java
index
aadcdb9
..
18372db
100644
(file)
--- a/
src/jalview/io/FileFormats.java
+++ b/
src/jalview/io/FileFormats.java
@@
-20,6
+20,8
@@
*/
package jalview.io;
*/
package jalview.io;
+import java.util.Locale;
+
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashMap;
@@
-102,10
+104,11
@@
public class FileFormats
protected void registerFileFormat(FileFormatI format,
boolean isIdentifiable)
{
protected void registerFileFormat(FileFormatI format,
boolean isIdentifiable)
{
- String name = format.getName().toUpperCase();
+ String name = format.getName().toUpperCase(Locale.ROOT);
if (formats.containsKey(name))
{
if (formats.containsKey(name))
{
- System.err.println("Overwriting file format: " + format.getName());
+ jalview.bin.Console
+ .errPrintln("Overwriting file format: " + format.getName());
}
formats.put(name, format);
if (isIdentifiable)
}
formats.put(name, format);
if (isIdentifiable)
@@
-121,7
+124,7
@@
public class FileFormats
*/
public void deregisterFileFormat(String name)
{
*/
public void deregisterFileFormat(String name)
{
- FileFormatI ff = formats.remove(name.toUpperCase());
+ FileFormatI ff = formats.remove(name.toUpperCase(Locale.ROOT));
identifiable.remove(ff);
}
identifiable.remove(ff);
}
@@
-174,7
+177,8
@@
public class FileFormats
*/
public FileFormatI forName(String format)
{
*/
public FileFormatI forName(String format)
{
- return format == null ? null : formats.get(format.toUpperCase());
+ return format == null ? null
+ : formats.get(format.toUpperCase(Locale.ROOT));
}
/**
}
/**