leif 2002/09/25 21:15:45
Modified: instrument-manager/src/java/org/apache/excalibur/instrument/manager
InstrumentProxy.java
Log:
Move the validation of the count passed to increment(count) to the instrument
from the proxy so that problems will be discovered even if not connected to an
instrument manager.
Revision Changes Path
1.4 +1 -6
jakarta-avalon-excalibur/instrument-manager/src/java/org/apache/excalibur/instrument/manager/InstrumentProxy.java
Index: InstrumentProxy.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/instrument-manager/src/java/org/apache/excalibur/instrument/manager/InstrumentProxy.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- InstrumentProxy.java 6 Sep 2002 02:10:12 -0000 1.3
+++ InstrumentProxy.java 26 Sep 2002 04:15:45 -0000 1.4
@@ -214,11 +214,6 @@
"The proxy is not configured to handle CounterInstruments." );
}
- // Check the count
- if ( count <= 0 ) {
- throw new IllegalArgumentException( "Count must be a positive value." );
- }
-
// Get a local reference to the listeners, so that synchronization can be
avoided.
InstrumentListener[] listeners = m_listeners;
if ( listeners != null )
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>