Skip to content

Commit

Permalink
GenericJMX plugin: Suppress "unchecked conversion" warning.
Browse files Browse the repository at this point in the history
The internet tells me there is no elegant way around this.
  • Loading branch information
octo committed Aug 15, 2016
1 parent 60d7a46 commit a82b047
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bindings/java/org/collectd/java/GenericJMXConfValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,8 @@ private Object queryAttributeRecursive (TabularData parent, /* {{{ */

key = attrName.remove (0);

TabularData tabularData = (TabularData) parent;
Collection<CompositeData> table =
(Collection<CompositeData>)tabularData.values();
@SuppressWarnings("unchecked")
Collection<CompositeData> table = (Collection<CompositeData>) parent.values();
for (CompositeData compositeData : table)
{
if (key.equals(compositeData.get("key")))
Expand Down

0 comments on commit a82b047

Please sign in to comment.