commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nico...@apache.org
Subject svn commit: r663076 - /commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/listeners/HistorizedRepositoryDecorator.java
Date Wed, 04 Jun 2008 12:49:14 GMT
Author: nicolas
Date: Wed Jun  4 05:49:14 2008
New Revision: 663076

URL: http://svn.apache.org/viewvc?rev=663076&view=rev
Log:
fix IndexOutOfBoundException

Modified:
    commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/listeners/HistorizedRepositoryDecorator.java

Modified: commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/listeners/HistorizedRepositoryDecorator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/listeners/HistorizedRepositoryDecorator.java?rev=663076&r1=663075&r2=663076&view=diff
==============================================================================
--- commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/listeners/HistorizedRepositoryDecorator.java
(original)
+++ commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/listeners/HistorizedRepositoryDecorator.java
Wed Jun  4 05:49:14 2008
@@ -67,7 +67,7 @@
         history.add( period );
         while ( history.size() > size )
         {
-            history.remove( history.size() );
+            history.remove( history.size() - 1 );
         }
     }
 



Mime
View raw message