From 4699d1858999c49dfbab4d98004b20df974fdc57 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 27 Sep 2016 15:17:43 +0100 Subject: [PATCH] JAL-2210 formatting --- src/jalview/util/DBRefUtils.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/jalview/util/DBRefUtils.java b/src/jalview/util/DBRefUtils.java index f414a9c..2d09088 100755 --- a/src/jalview/util/DBRefUtils.java +++ b/src/jalview/util/DBRefUtils.java @@ -302,7 +302,8 @@ public class DBRefUtils @Override public boolean matches(DBRefEntry refa, DBRefEntry refb) { - if (refa.getSource() != null && refb.getSource() != null + if (refa.getSource() != null + && refb.getSource() != null && DBRefUtils.getCanonicalName(refb.getSource()).equals( DBRefUtils.getCanonicalName(refa.getSource()))) { @@ -334,7 +335,8 @@ public class DBRefUtils @Override public boolean matches(DBRefEntry refa, DBRefEntry refb) { - if (refa.getSource() != null && refb.getSource() != null + if (refa.getSource() != null + && refb.getSource() != null && DBRefUtils.getCanonicalName(refb.getSource()).equals( DBRefUtils.getCanonicalName(refa.getSource()))) { @@ -371,7 +373,8 @@ public class DBRefUtils @Override public boolean matches(DBRefEntry refa, DBRefEntry refb) { - if (refa.getSource() != null && refb.getSource() != null + if (refa.getSource() != null + && refb.getSource() != null && DBRefUtils.getCanonicalName(refb.getSource()).equals( DBRefUtils.getCanonicalName(refa.getSource()))) { @@ -411,7 +414,8 @@ public class DBRefUtils @Override public boolean matches(DBRefEntry refa, DBRefEntry refb) { - if (refa.getSource() != null && refb.getSource() != null + if (refa.getSource() != null + && refb.getSource() != null && DBRefUtils.getCanonicalName(refb.getSource()).equals( DBRefUtils.getCanonicalName(refa.getSource()))) { -- 1.7.10.2