mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
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:
parent
02a90014e7
commit
ae49c2bdb2
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user