From cfb1c97ca06d84415409a8c9a9b1665e43520756 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Wed, 2 Dec 2015 08:53:53 +0100 Subject: [PATCH] GenericJMX plugin: fix indentation/bracket error 1e2ad9c0 contained a mistake which resulted in the following build error. It seems to be a bad copy-paste when creating #1330 from the patch in #1291. ``` ./org/collectd/java/GenericJMXConfValue.java:535: error: variable tmp is already defined in constructor GenericJMXConfValue(OConfigItem) String tmp = getConfigString (child); ``` --- .../java/org/collectd/java/GenericJMXConfValue.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/java/org/collectd/java/GenericJMXConfValue.java b/bindings/java/org/collectd/java/GenericJMXConfValue.java index 802622c5..25b70d4a 100644 --- a/bindings/java/org/collectd/java/GenericJMXConfValue.java +++ b/bindings/java/org/collectd/java/GenericJMXConfValue.java @@ -530,12 +530,12 @@ class GenericJMXConfValue String tmp = getConfigString (child); if (tmp != null) this._instance_from.add (tmp); - else if (child.getKey ().equalsIgnoreCase ("PluginName")) - { - String tmp = getConfigString (child); - if (tmp != null) - this._plugin_name = tmp; - } + } + else if (child.getKey ().equalsIgnoreCase ("PluginName")) + { + String tmp = getConfigString (child); + if (tmp != null) + this._plugin_name = tmp; } else throw (new IllegalArgumentException ("Unknown option: " -- 2.30.2