commit | 9d810f6bed01f6c40c265b150f27b6ea55e2eabb | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Fri Feb 13 11:20:58 2015 -0800 |
committer | Ray Milkey <ray@onlab.us> | Fri Feb 13 20:28:06 2015 +0000 |
tree | 24dd1b175e6a176d41a9fa56a8bc6654171f6ec2 | |
parent | 1d21866a74854a41b6015a549c2155666804c83b [diff] [blame] |
Fix some JSON related deprecation and javadoc warnings Change-Id: If39c0bbe578794c8308b24d9290e269bd14b9219
diff --git a/apps/metrics/topology/src/main/java/org/onosproject/metrics/topology/cli/TopologyEventsListCommand.java b/apps/metrics/topology/src/main/java/org/onosproject/metrics/topology/cli/TopologyEventsListCommand.java index 9634df6..0cd2cfb 100644 --- a/apps/metrics/topology/src/main/java/org/onosproject/metrics/topology/cli/TopologyEventsListCommand.java +++ b/apps/metrics/topology/src/main/java/org/onosproject/metrics/topology/cli/TopologyEventsListCommand.java
@@ -77,7 +77,7 @@ * Produces JSON object for a topology event. * * @param mapper the JSON object mapper to use - * @param topologyEvent the topology event with the data + * @param event the topology event with the data * @return JSON object for the topology event */ private ObjectNode json(ObjectMapper mapper, Event event) { @@ -94,7 +94,7 @@ for (Event reason : topologyEvent.reasons()) { reasons.add(json(mapper, reason)); } - result.put("reasons", reasons); + result.set("reasons", reasons); } return result;