From: gmungoc Date: Thu, 6 Jun 2019 14:17:54 +0000 (+0100) Subject: JAL-3187 minor code change post merge (signature change) X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d113749a183a3ea8f3f7e22c725511f59f1d833f;p=jalview.git JAL-3187 minor code change post merge (signature change) --- diff --git a/src/jalview/gui/FeatureTypeSettings.java b/src/jalview/gui/FeatureTypeSettings.java index 50efffc..167a63e 100644 --- a/src/jalview/gui/FeatureTypeSettings.java +++ b/src/jalview/gui/FeatureTypeSettings.java @@ -966,27 +966,27 @@ public class FeatureTypeSettings extends JalviewDialog /* * combobox to choose 'parent' of sub-types */ - List soTerms = new ArrayList<>(); + List soTerms = new ArrayList<>(); for (String term : relatedSoTerms.keySet()) { soTerms.add(term); } // sort from most restrictive to most inclusive - Collections.sort(soTerms, new Comparator() + Collections.sort(soTerms, new Comparator<>() { @Override - public int compare(String o1, String o2) + public int compare(Object o1, Object o2) { return Integer.compare(relatedSoTerms.get(o1).size(), relatedSoTerms.get(o2).size()); } }); List tooltips = new ArrayList<>(); - for (String term : soTerms) + for (Object term : soTerms) { tooltips.add(getSOTermsTooltip(relatedSoTerms.get(term))); } - JComboBox parentType = JvSwingUtils + JComboBox parentType = JvSwingUtils .buildComboWithTooltips(soTerms, tooltips); toSubtypes.add(parentType);