From: amwaterhouse Date: Thu, 15 Sep 2005 09:09:35 +0000 (+0000) Subject: Use equalsIgnoreCase X-Git-Tag: Release_2_05b~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=25db325e1dbc879140d059522af353a199045646;p=jalview.git Use equalsIgnoreCase --- diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 65c0f70..729a860 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -48,11 +48,11 @@ public class IdentifyFile { BufferedReader reader = null; - if (protocol.equals("File")) + if (protocol.equalsIgnoreCase("File")) { reader = new BufferedReader(new FileReader(file)); } - else if (protocol.equals("URL")) + else if (protocol.equalsIgnoreCase("URL")) { error = "URL NOT FOUND"; URL url = new URL(file); @@ -60,7 +60,7 @@ public class IdentifyFile url.openStream())); } - else if (protocol.equals("Paste")) + else if (protocol.equalsIgnoreCase("Paste")) { reader = new BufferedReader(new StringReader(file)); }