From d5a877fec053515bfd780d289ace37cbb85a357c Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 25 May 2018 10:47:32 +0100 Subject: [PATCH] =?utf8?q?JAL-1460=20temp=20variable=20for=20clearer=20condi?= =?utf8?q?tional=20and=20some=20extra=20brackets=20for=20readability=20only=E2?= =?utf8?q?=80=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/gui/Desktop.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 9d5cabd..8be4eac 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -3471,7 +3471,10 @@ public class Desktop extends jalview.jbgui.GDesktop // resolve any .lnk files in the file drop for (int f = 0; f < files.size(); f++) { - if (protocols.get(f).equals(DataSourceType.FILE) && files.get(f).toLowerCase().endsWith(".lnk") || files.get(f).toLowerCase().endsWith(".url")|| files.get(f).toLowerCase().endsWith(".site")) + String source = files.get(f).toLowerCase(); + if (protocols.get(f).equals(DataSourceType.FILE) + && (source.endsWith(".lnk") || source.endsWith(".url") + || source.endsWith(".site"))) { try { File lf = new File(files.get(f)); -- 1.7.10.2