From: Florian Forster Date: Sun, 29 Mar 2009 11:55:32 +0000 (+0200) Subject: bindings/java/: Initialize `time' and `interval' to zero. X-Git-Tag: collectd-4.7.0~74 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d97acaca7750c00b9ae168fe8082e5229c5ec29d;p=collectd.git bindings/java/: Initialize `time' and `interval' to zero. They will be replaced by the correct values automatically, so it's better to initialize the members to those ``magic'' values.. --- diff --git a/bindings/java/org/collectd/api/PluginData.java b/bindings/java/org/collectd/api/PluginData.java index 45cd8362..26b0206d 100644 --- a/bindings/java/org/collectd/api/PluginData.java +++ b/bindings/java/org/collectd/api/PluginData.java @@ -25,7 +25,7 @@ import java.util.Date; */ public class PluginData { - protected long _time; + protected long _time = 0; protected String _host; protected String _plugin; protected String _pluginInstance = ""; diff --git a/bindings/java/org/collectd/api/ValueList.java b/bindings/java/org/collectd/api/ValueList.java index 4ba30188..1baeff24 100644 --- a/bindings/java/org/collectd/api/ValueList.java +++ b/bindings/java/org/collectd/api/ValueList.java @@ -29,7 +29,7 @@ public class ValueList extends PluginData { private List _values = new ArrayList(); private DataSet _ds; - private long _interval; + private long _interval = 0; public ValueList() {