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:19:31 UTC
svn commit: r911081 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/TimeDuration.java
Author: doogie
Date: Wed Feb 17 17:19:31 2010
New Revision: 911081
URL: http://svn.apache.org/viewvc?rev=911081&view=rev
Log:
Make calendar constructor helper methods private static.
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=911081&r1=911080&r2=911081&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:19:31 2010
@@ -229,14 +229,14 @@
return cal;
}
- protected long computeDeltaMillis(long start, long end) {
+ private static long computeDeltaMillis(long start, long end) {
if (start < 0) {
return end + (-start);
}
return end - start;
}
- protected int advanceCalendar(Calendar start, Calendar end, int units, int type) {
+ private static int advanceCalendar(Calendar start, Calendar end, int units, int type) {
if (units >= 1) {
// Bother, the below needs explanation.
//