Java code in Node currently targets Java 6 due to the caplet, until we decide we need to separate it out. This file uses Java 7+ features so downgrade it, which fixes the build (for some reason I could not easily reproduce this failure)

This commit is contained in:
Mike Hearn 2016-11-17 12:33:57 +01:00
parent 02a90014e7
commit ae49c2bdb2

View File

@ -14,9 +14,9 @@ public class StateViewer {
public static void main(String[] args) {
JFrame frame = new JFrame("StateViewer");
List<Pair<String, Object>> props = new ArrayList<>();
props.add(new Pair<>("a", 123));
props.add(new Pair<>("things", "bar"));
List<Pair<String, Object>> props = new ArrayList<Pair<String, Object>>();
props.add(new Pair<String, Object>("a", 123));
props.add(new Pair<String, Object>("things", "bar"));
frame.setContentPane(new StateViewer(props).root);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
@ -37,7 +37,7 @@ public class StateViewer {
frame.setVisible(true);
}
private StateViewer(List<Pair<String, Object>> props) {
private StateViewer(final List<Pair<String, Object>> props) {
propsTable.setModel(new AbstractTableModel() {
@Override
public int getRowCount() {