--- CircuitBreaker/src/dk/thoerup/curcuitbreaker/ClosedState.java 2009/10/08 12:32:09 423 +++ CircuitBreaker/src/dk/thoerup/curcuitbreaker/ClosedState.java 2009/10/08 20:39:39 424 @@ -4,10 +4,10 @@ -public class ClosedState implements CircuitBreakerState { +public final class ClosedState implements CircuitBreakerState { - AtomicInteger failureCount = new AtomicInteger(0); - AtomicInteger failureThreshold = new AtomicInteger(0); + final AtomicInteger failureCount = new AtomicInteger(0); + final AtomicInteger failureThreshold = new AtomicInteger(0); public void setThreshold(int threshold) { failureThreshold.set( threshold );