diff --git a/Mage.Client/src/main/java/mage/client/cards/ManaBarChart.java b/Mage.Client/src/main/java/mage/client/cards/ManaBarChart.java index ae8da7a057..d1a918d86b 100644 --- a/Mage.Client/src/main/java/mage/client/cards/ManaBarChart.java +++ b/Mage.Client/src/main/java/mage/client/cards/ManaBarChart.java @@ -17,7 +17,7 @@ import javax.swing.JComponent; public class ManaBarChart extends JComponent { - Map pips_at_cmcs = new HashMap(); + Map pips_at_cmcs = new HashMap<>(); ManaBarChart() { } @@ -43,7 +43,7 @@ public class ManaBarChart extends JComponent { void drawBar(Graphics2D g, Rectangle area) { Pattern regex = Pattern.compile("^([0-9]+)##(.)}"); - Map totals_at_cmcs = new HashMap(); + Map totals_at_cmcs = new HashMap<>(); int max_num_pips = 0; int max_cmc = 0; @@ -112,7 +112,7 @@ public class ManaBarChart extends JComponent { } - Map running_totals_at_cmcs = new HashMap(); + Map running_totals_at_cmcs = new HashMap<>(); for (String key : pips_at_cmcs.keySet()) { Matcher regexMatcher = regex.matcher(key); int num_pips = pips_at_cmcs.get(key); diff --git a/Mage.Client/src/main/java/mage/client/dialog/CheckBoxList.java b/Mage.Client/src/main/java/mage/client/dialog/CheckBoxList.java index c1dc031341..fca46f2185 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/CheckBoxList.java +++ b/Mage.Client/src/main/java/mage/client/dialog/CheckBoxList.java @@ -644,7 +644,7 @@ public class CheckBoxList extends JList { int i; // traverse over model - list = new Vector(); + list = new Vector<>(); for (i = 0; i < getModel().getSize(); i++) { if (getChecked(i)) { list.add(new Integer(i)); diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/beans/properties/AbstractProperties.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/beans/properties/AbstractProperties.java index 45194273bb..e52ce5c89d 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/beans/properties/AbstractProperties.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/beans/properties/AbstractProperties.java @@ -29,22 +29,22 @@ public abstract class AbstractProperties implements Properties { @Override public Property property(String name) { - return property(name, new BasicProperty()); + return property(name, new BasicProperty<>()); } @Override public List list(String name) { - return list(name, new ArrayList()); + return list(name, new ArrayList<>()); } @Override public Set set(String name) { - return set(name, new HashSet()); + return set(name, new HashSet<>()); } @Override public Map map(String name) { - return map(name, new HashMap()); + return map(name, new HashMap<>()); } } diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/CopyPasteImageSource.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/CopyPasteImageSource.java index 7b8883a7f1..0011134ab3 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/CopyPasteImageSource.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/CopyPasteImageSource.java @@ -21,8 +21,8 @@ public enum CopyPasteImageSource implements CardImageSource { instance; - private final Set supportedSets = new LinkedHashSet(); - private final Set missingCards = new LinkedHashSet(); + private final Set supportedSets = new LinkedHashSet<>(); + private final Set missingCards = new LinkedHashSet<>(); Map singleLinks = null; boolean loadedFromDialog = false; boolean viewMissingCards = true; diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/TokensMtgImageSource.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/TokensMtgImageSource.java index 5ab71beb8a..b74e9ee11c 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/TokensMtgImageSource.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/TokensMtgImageSource.java @@ -26,7 +26,7 @@ public enum TokensMtgImageSource implements CardImageSource { // [[EXP/Name, TokenData> private HashMap> tokensData; - private static final Set supportedSets = new LinkedHashSet(); + private static final Set supportedSets = new LinkedHashSet<>(); private final Object tokensDataSync = new Object();