commit | dbef16fcd41c45e9ba2429a5102c52315343eb70 | [log] [tgz] |
---|---|---|
author | Kamal Krishna Bhatt <kamal.bhatt@stordis.com> | Mon Jun 04 13:25:58 2018 +0200 |
committer | Andrea Campanella <andrea@opennetworking.org> | Wed Jun 06 08:22:17 2018 +0000 |
tree | 293483667814265962512a256b8770412af7ade2 | |
parent | 3df560beb808bc4314023146f03b0912c5e48e2c [diff] |
Fix for ONOS-7708 java.lang.ClassCastException while calling the API to get OvsdbQueue. Change-Id: Ib67f33483f870a775d8fa73fe7aa531b97c8e1e6
diff --git a/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java b/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java index 768addf..17d931f 100644 --- a/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java +++ b/protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java
@@ -1705,11 +1705,10 @@ } OvsdbSet dscpOvsdbSet = ((OvsdbSet) queue.getDscpColumn().data()); - @SuppressWarnings("unchecked") - Set<String> dscpSet = dscpOvsdbSet.set(); + Set dscpSet = dscpOvsdbSet.set(); Long dscp = null; if (dscpSet != null && !dscpSet.isEmpty()) { - dscp = Long.valueOf((String) dscpSet.toArray()[0]); + dscp = Long.valueOf(dscpSet.toArray()[0].toString()); } Map<String, String> otherConfigs;