commit | c18d0e3ef6eb55c186027a395e6434fa64cd09d3 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Mon Jan 04 16:10:59 2016 -0800 |
committer | Ray Milkey <ray@onlab.us> | Mon Jan 04 16:10:59 2016 -0800 |
tree | c36af5c149d2ff61212cdfe00699b61fa5284c73 | |
parent | 9092db839efefc235d6afea6654ac82d742123b0 [diff] |
Fix compilation problem on some versions of the JVM Change-Id: I3f2c7ad8fbcd228c7eeb0a2125fcbdbfcb572bd9
diff --git a/apps/events/src/main/java/org/onosproject/events/EventsCommand.java b/apps/events/src/main/java/org/onosproject/events/EventsCommand.java index c6f15de..67f8981 100644 --- a/apps/events/src/main/java/org/onosproject/events/EventsCommand.java +++ b/apps/events/src/main/java/org/onosproject/events/EventsCommand.java
@@ -218,7 +218,8 @@ } else if (event instanceof TopologyEvent) { TopologyEvent topoEvent = (TopologyEvent) event; - List<Event> reasons = MoreObjects.firstNonNull(topoEvent.reasons(), ImmutableList.of()); + List<Event> reasons = MoreObjects.firstNonNull(topoEvent.reasons(), + ImmutableList.<Event>of()); Topology topo = topoEvent.subject(); String summary = String.format("(d=%d,l=%d,c=%d)", topo.deviceCount(),