summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 60d7a46)
raw | patch | inline | side by side (parent: 60d7a46)
author | Florian Forster <octo@collectd.org> | |
Mon, 15 Aug 2016 05:41:24 +0000 (07:41 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 15 Aug 2016 05:41:24 +0000 (07:41 +0200) |
The internet tells me there is no elegant way around this.
bindings/java/org/collectd/java/GenericJMXConfValue.java | patch | blob | history |
diff --git a/bindings/java/org/collectd/java/GenericJMXConfValue.java b/bindings/java/org/collectd/java/GenericJMXConfValue.java
index 25b70d4ad7166dfda421f8b29fb37a757a837673..63b76282ecfa7ddbb38bfec94440876c33275230 100644 (file)
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")))