You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2010/02/17 18:20:31 UTC
svn commit: r911083 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java
Author: doogie
Date: Wed Feb 17 17:20:31 2010
New Revision: 911083
URL: http://svn.apache.org/viewvc?rev=911083&view=rev
Log:
Don't need to set default values for variables.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java?rev=911083&r1=911082&r2=911083&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java Wed Feb 17 17:20:31 2010
@@ -27,14 +27,14 @@
/** A <code>TimeDuration</code> instance that represents a zero time duration. */
public static final TimeDuration ZeroTimeDuration = new NullDuration();
- protected int millis = 0;
- protected int seconds = 0;
- protected int minutes = 0;
- protected int hours = 0;
- protected int days = 0;
- protected int months = 0;
- protected int years = 0;
- protected boolean isNegative = false;
+ protected int millis;
+ protected int seconds;
+ protected int minutes;
+ protected int hours;
+ protected int days;
+ protected int months;
+ protected int years;
+ protected boolean isNegative;
protected TimeDuration() {}
/**
@@ -66,8 +66,8 @@
*/
public TimeDuration(Calendar cal1, Calendar cal2) {
// set up Calendar objects
- Calendar calStart = null;
- Calendar calEnd = null;
+ Calendar calStart;
+ Calendar calEnd;
boolean isNegative = false;
if (cal1.before(cal2)) {
calStart = (Calendar) cal1.clone();