mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
explicit parameters are not needed
This commit is contained in:
parent
96b2094370
commit
e03b446601
5 changed files with 11 additions and 11 deletions
|
@ -17,7 +17,7 @@ import javax.swing.JComponent;
|
||||||
|
|
||||||
public class ManaBarChart extends JComponent {
|
public class ManaBarChart extends JComponent {
|
||||||
|
|
||||||
Map<String, Integer> pips_at_cmcs = new HashMap<String, Integer>();
|
Map<String, Integer> pips_at_cmcs = new HashMap<>();
|
||||||
|
|
||||||
ManaBarChart() {
|
ManaBarChart() {
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ public class ManaBarChart extends JComponent {
|
||||||
|
|
||||||
void drawBar(Graphics2D g, Rectangle area) {
|
void drawBar(Graphics2D g, Rectangle area) {
|
||||||
Pattern regex = Pattern.compile("^([0-9]+)##(.)}");
|
Pattern regex = Pattern.compile("^([0-9]+)##(.)}");
|
||||||
Map<Integer, Integer> totals_at_cmcs = new HashMap<Integer, Integer>();
|
Map<Integer, Integer> totals_at_cmcs = new HashMap<>();
|
||||||
int max_num_pips = 0;
|
int max_num_pips = 0;
|
||||||
int max_cmc = 0;
|
int max_cmc = 0;
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ public class ManaBarChart extends JComponent {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<Integer, Integer> running_totals_at_cmcs = new HashMap<Integer, Integer>();
|
Map<Integer, Integer> running_totals_at_cmcs = new HashMap<>();
|
||||||
for (String key : pips_at_cmcs.keySet()) {
|
for (String key : pips_at_cmcs.keySet()) {
|
||||||
Matcher regexMatcher = regex.matcher(key);
|
Matcher regexMatcher = regex.matcher(key);
|
||||||
int num_pips = pips_at_cmcs.get(key);
|
int num_pips = pips_at_cmcs.get(key);
|
||||||
|
|
|
@ -644,7 +644,7 @@ public class CheckBoxList extends JList {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// traverse over model
|
// traverse over model
|
||||||
list = new Vector<Integer>();
|
list = new Vector<>();
|
||||||
for (i = 0; i < getModel().getSize(); i++) {
|
for (i = 0; i < getModel().getSize(); i++) {
|
||||||
if (getChecked(i)) {
|
if (getChecked(i)) {
|
||||||
list.add(new Integer(i));
|
list.add(new Integer(i));
|
||||||
|
|
|
@ -29,22 +29,22 @@ public abstract class AbstractProperties implements Properties {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <T> Property<T> property(String name) {
|
public <T> Property<T> property(String name) {
|
||||||
return property(name, new BasicProperty<T>());
|
return property(name, new BasicProperty<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <E> List<E> list(String name) {
|
public <E> List<E> list(String name) {
|
||||||
return list(name, new ArrayList<E>());
|
return list(name, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <E> Set<E> set(String name) {
|
public <E> Set<E> set(String name) {
|
||||||
return set(name, new HashSet<E>());
|
return set(name, new HashSet<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <K, V> Map<K, V> map(String name) {
|
public <K, V> Map<K, V> map(String name) {
|
||||||
return map(name, new HashMap<K, V>());
|
return map(name, new HashMap<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,8 @@ public enum CopyPasteImageSource implements CardImageSource {
|
||||||
|
|
||||||
instance;
|
instance;
|
||||||
|
|
||||||
private final Set<String> supportedSets = new LinkedHashSet<String>();
|
private final Set<String> supportedSets = new LinkedHashSet<>();
|
||||||
private final Set<String> missingCards = new LinkedHashSet<String>();
|
private final Set<String> missingCards = new LinkedHashSet<>();
|
||||||
Map<String, String> singleLinks = null;
|
Map<String, String> singleLinks = null;
|
||||||
boolean loadedFromDialog = false;
|
boolean loadedFromDialog = false;
|
||||||
boolean viewMissingCards = true;
|
boolean viewMissingCards = true;
|
||||||
|
|
|
@ -26,7 +26,7 @@ public enum TokensMtgImageSource implements CardImageSource {
|
||||||
|
|
||||||
// [[EXP/Name, TokenData>
|
// [[EXP/Name, TokenData>
|
||||||
private HashMap<String, List<TokenData>> tokensData;
|
private HashMap<String, List<TokenData>> tokensData;
|
||||||
private static final Set<String> supportedSets = new LinkedHashSet<String>();
|
private static final Set<String> supportedSets = new LinkedHashSet<>();
|
||||||
|
|
||||||
private final Object tokensDataSync = new Object();
|
private final Object tokensDataSync = new Object();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue