From: Jim Procter Date: Tue, 22 Aug 2017 21:09:44 +0000 (+0100) Subject: JAL-2681 formatting X-Git-Tag: Release_2_10_3b1~142^2~4^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e1ea985e8f7033d77ce0f454ac55d35943380533;p=jalview.git JAL-2681 formatting --- diff --git a/src/jalview/ws/seqfetcher/ASequenceFetcher.java b/src/jalview/ws/seqfetcher/ASequenceFetcher.java index 977f9da..a07e88b 100644 --- a/src/jalview/ws/seqfetcher/ASequenceFetcher.java +++ b/src/jalview/ws/seqfetcher/ASequenceFetcher.java @@ -126,8 +126,8 @@ public class ASequenceFetcher */ public SequenceI[] getSequences(List refs, boolean dna) { - Vector rseqs = new Vector(); - Hashtable> queries = new Hashtable>(); + Vector rseqs = new Vector<>(); + Hashtable> queries = new Hashtable<>(); for (DBRefEntry ref : refs) { if (!queries.containsKey(ref.getSource())) @@ -154,14 +154,14 @@ public class ASequenceFetcher continue; } - Stack queriesLeft = new Stack(); + Stack queriesLeft = new Stack<>(); queriesLeft.addAll(query); List proxies = getSourceProxy(db); for (DbSourceProxy fetcher : proxies) { - List queriesMade = new ArrayList(); - HashSet queriesFound = new HashSet(); + List queriesMade = new ArrayList<>(); + HashSet queriesFound = new HashSet<>(); try { if (fetcher.isDnaCoding() != dna) @@ -306,13 +306,13 @@ public class ASequenceFetcher Map dblist = fetchableDbs.get(db); if (dblist == null) { - return new ArrayList(); + return new ArrayList<>(); } /* * sort so that primary sources precede secondary */ - List dbs = new ArrayList(dblist.values()); + List dbs = new ArrayList<>(dblist.values()); Collections.sort(dbs, proxyComparator); return dbs; } @@ -357,14 +357,14 @@ public class ASequenceFetcher { if (fetchableDbs == null) { - fetchableDbs = new Hashtable>(); + fetchableDbs = new Hashtable<>(); } Map slist = fetchableDbs .get(proxy.getDbSource()); if (slist == null) { fetchableDbs.put(proxy.getDbSource(), - slist = new Hashtable()); + slist = new Hashtable<>()); } slist.put(proxy.getDbName(), proxy); } @@ -391,7 +391,7 @@ public class ASequenceFetcher return null; } String[] sources = null; - Vector src = new Vector(); + Vector src = new Vector<>(); Enumeration dbs = fetchableDbs.keys(); while (dbs.hasMoreElements()) { @@ -413,7 +413,7 @@ public class ASequenceFetcher public DbSourceProxy[] getDbSourceProxyInstances(Class class1) { - List prlist = new ArrayList(); + List prlist = new ArrayList<>(); for (String fetchable : getSupportedDb()) { for (DbSourceProxy pr : getSourceProxy(fetchable))