From: Jim Procter Date: Fri, 25 May 2018 09:47:32 +0000 (+0100) Subject: JAL-1460 temp variable for clearer conditional and some extra brackets for readabilit... X-Git-Tag: Release_2_10_5~67^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d5a877fec053515bfd780d289ace37cbb85a357c;p=jalview.git JAL-1460 temp variable for clearer conditional and some extra brackets for readability only
 --- 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));