From 327711f872422dee0ddf622f5b2dd0e7833da2de Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 22 Aug 2017 22:42:11 +0100 Subject: [PATCH] JAL-1551 formatting --- src/jalview/datamodel/xdb/embl/EmblEntry.java | 2 +- src/jalview/ws/dbsources/EmblXmlSource.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jalview/datamodel/xdb/embl/EmblEntry.java b/src/jalview/datamodel/xdb/embl/EmblEntry.java index fe3f6ef..2de100b 100644 --- a/src/jalview/datamodel/xdb/embl/EmblEntry.java +++ b/src/jalview/datamodel/xdb/embl/EmblEntry.java @@ -279,7 +279,7 @@ public class EmblEntry String translation = null; String proteinName = ""; String proteinId = null; - Map vals = new Hashtable(); + Map vals = new Hashtable<>(); /* * codon_start 1/2/3 in EMBL corresponds to phase 0/1/2 in CDS diff --git a/src/jalview/ws/dbsources/EmblXmlSource.java b/src/jalview/ws/dbsources/EmblXmlSource.java index 21b226b..ca90d60 100644 --- a/src/jalview/ws/dbsources/EmblXmlSource.java +++ b/src/jalview/ws/dbsources/EmblXmlSource.java @@ -91,7 +91,7 @@ public abstract class EmblXmlSource extends EbiFileRetrievedProxy File reply) throws Exception { EmblFile efile = null; - List seqs = new ArrayList(); + List seqs = new ArrayList<>(); if (reply != null && reply.exists()) { @@ -107,7 +107,7 @@ public abstract class EmblXmlSource extends EbiFileRetrievedProxy * EmbFile reads something like (e.g.) this ungrammatical phrase * Entry: display type is either not supported or entry is not found. */ - List peptides = new ArrayList(); + List peptides = new ArrayList<>(); if (efile != null && efile.getEntries() != null) { for (EmblEntry entry : efile.getEntries()) -- 1.7.10.2