Use equalsIgnoreCase
authoramwaterhouse <Andrew Waterhouse>
Thu, 15 Sep 2005 09:09:35 +0000 (09:09 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 15 Sep 2005 09:09:35 +0000 (09:09 +0000)
src/jalview/io/IdentifyFile.java

index 65c0f70..729a860 100755 (executable)
@@ -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