From 25db325e1dbc879140d059522af353a199045646 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 15 Sep 2005 09:09:35 +0000 Subject: [PATCH] Use equalsIgnoreCase --- src/jalview/io/IdentifyFile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); } -- 1.7.10.2