From: <mu...@us...> - 2007-11-21 16:12:45
|
Revision: 613 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=613&view=rev Author: mungady Date: 2007-11-21 08:12:43 -0800 (Wed, 21 Nov 2007) Log Message: ----------- 2007-11-21 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/DateAxis.java (previousStandardDate): Return dates already fetched. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/ChangeLog branches/jfreechart-1.0.x-branch/source/org/jfree/chart/axis/DateAxis.java Modified: branches/jfreechart-1.0.x-branch/ChangeLog =================================================================== --- branches/jfreechart-1.0.x-branch/ChangeLog 2007-11-21 15:54:41 UTC (rev 612) +++ branches/jfreechart-1.0.x-branch/ChangeLog 2007-11-21 16:12:43 UTC (rev 613) @@ -1,5 +1,10 @@ 2007-11-21 David Gilbert <dav...@ob...> + * source/org/jfree/chart/axis/DateAxis.java + (previousStandardDate): Return dates already fetched. + +2007-11-21 David Gilbert <dav...@ob...> + * source/org/jfree/chart/renderer/CategoryAxis.java (equalPaintMaps): Use entrySet rather than keySet. Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/axis/DateAxis.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/axis/DateAxis.java 2007-11-21 15:54:41 UTC (rev 612) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/axis/DateAxis.java 2007-11-21 16:12:43 UTC (rev 613) @@ -114,6 +114,7 @@ * 19-Apr-2007 : Fix exceptions in setMinimum/MaximumDate() (DG); * 03-May-2007 : Fixed minor bugs in previousStandardDate(), with new JUnit * tests (DG); + * 21-Nov-2007 : Fixed warnings from FindBugs (DG); * */ @@ -853,7 +854,7 @@ calendar.set(Calendar.MILLISECOND, value - 1); mm = calendar.getTime(); } - return calendar.getTime(); + return mm; case (DateTickUnit.SECOND) : years = calendar.get(Calendar.YEAR); @@ -877,7 +878,7 @@ calendar.set(Calendar.SECOND, value - 1); dd = calendar.getTime(); } - return calendar.getTime(); + return dd; case (DateTickUnit.MINUTE) : years = calendar.get(Calendar.YEAR); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |