git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9344c30
)
Use equalsIgnoreCase
author
amwaterhouse
<Andrew Waterhouse>
Thu, 15 Sep 2005 09:09:35 +0000
(09:09 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 15 Sep 2005 09:09:35 +0000
(09:09 +0000)
src/jalview/io/IdentifyFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/IdentifyFile.java
b/src/jalview/io/IdentifyFile.java
index
65c0f70
..
729a860
100755
(executable)
--- a/
src/jalview/io/IdentifyFile.java
+++ b/
src/jalview/io/IdentifyFile.java
@@
-48,11
+48,11
@@
public class IdentifyFile
{
\r
BufferedReader reader = null;
\r
\r
- if (protocol.equals("File"))
\r
+ if (protocol.equalsIgnoreCase("File"))
\r
{
\r
reader = new BufferedReader(new FileReader(file));
\r
}
\r
- else if (protocol.equals("URL"))
\r
+ else if (protocol.equalsIgnoreCase("URL"))
\r
{
\r
error = "URL NOT FOUND";
\r
URL url = new URL(file);
\r
@@
-60,7
+60,7
@@
public class IdentifyFile
url.openStream()));
\r
\r
}
\r
- else if (protocol.equals("Paste"))
\r
+ else if (protocol.equalsIgnoreCase("Paste"))
\r
{
\r
reader = new BufferedReader(new StringReader(file));
\r
}
\r