forked from External/mage
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 {
|
||||
|
||||
Map<String, Integer> pips_at_cmcs = new HashMap<String, Integer>();
|
||||
Map<String, Integer> 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<Integer, Integer> totals_at_cmcs = new HashMap<Integer, Integer>();
|
||||
Map<Integer, Integer> totals_at_cmcs = new HashMap<>();
|
||||
int max_num_pips = 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()) {
|
||||
Matcher regexMatcher = regex.matcher(key);
|
||||
int num_pips = pips_at_cmcs.get(key);
|
||||
|
|
|
|||
|
|
@ -644,7 +644,7 @@ public class CheckBoxList extends JList {
|
|||
int i;
|
||||
|
||||
// traverse over model
|
||||
list = new Vector<Integer>();
|
||||
list = new Vector<>();
|
||||
for (i = 0; i < getModel().getSize(); i++) {
|
||||
if (getChecked(i)) {
|
||||
list.add(new Integer(i));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue