test/javax/management/monitor/CounterMonitorTest.java

Print this page

        

*** 66,76 **** echo(">>> StdObservedObject.getNbObjects: " + count); synchronized(CounterMonitorTest.class) { observedValue = count; CounterMonitorTest.class.notifyAll(); } ! return count; } public void setNbObjects(Object n) { echo(">>> StdObservedObject.setNbObjects: " + n); count = n; } --- 66,76 ---- echo(">>> StdObservedObject.getNbObjects: " + count); synchronized(CounterMonitorTest.class) { observedValue = count; CounterMonitorTest.class.notifyAll(); } ! return observedValue; } public void setNbObjects(Object n) { echo(">>> StdObservedObject.setNbObjects: " + n); count = n; }