From d97acaca7750c00b9ae168fe8082e5229c5ec29d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 29 Mar 2009 13:55:32 +0200 Subject: [PATCH] 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.. --- bindings/java/org/collectd/api/PluginData.java | 2 +- bindings/java/org/collectd/api/ValueList.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() { -- 2.30.2