Add missing '@Override' annotations.
This commit is contained in:
parent
c9a5e54a7c
commit
23c706ff91
|
@ -49,6 +49,7 @@ public abstract class AbstractCircuitBreaker<T> implements CircuitBreaker<T> {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean isOpen() {
|
||||
return isOpen(state.get());
|
||||
}
|
||||
|
@ -56,6 +57,7 @@ public abstract class AbstractCircuitBreaker<T> implements CircuitBreaker<T> {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean isClosed() {
|
||||
return !isOpen();
|
||||
}
|
||||
|
@ -63,16 +65,19 @@ public abstract class AbstractCircuitBreaker<T> implements CircuitBreaker<T> {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public abstract boolean checkState();
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public abstract boolean incrementAndCheckState(T increment);
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void close() {
|
||||
changeState(State.CLOSED);
|
||||
}
|
||||
|
@ -80,6 +85,7 @@ public abstract class AbstractCircuitBreaker<T> implements CircuitBreaker<T> {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void open() {
|
||||
changeState(State.OPEN);
|
||||
}
|
||||
|
|
|
@ -4289,6 +4289,7 @@ public class ArrayUtilsTest {
|
|||
@Test
|
||||
public void testIsSortedComparator() {
|
||||
final Comparator<Integer> c = new Comparator<Integer>() {
|
||||
@Override
|
||||
public int compare(final Integer o1, final Integer o2) {
|
||||
return o2.compareTo(o1);
|
||||
}
|
||||
|
|
|
@ -104,6 +104,7 @@ public class CharSequenceUtilsTest {
|
|||
this.expected = false;
|
||||
this.throwable = throwable;
|
||||
}
|
||||
@Override
|
||||
public String toString(){
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
sb.append(source).append("[").append(toffset).append("]");
|
||||
|
|
|
@ -229,6 +229,7 @@ public class JsonToStringStyleTest {
|
|||
@Test
|
||||
public void testNestingPerson() {
|
||||
final Person p = new Person(){
|
||||
@Override
|
||||
public String toString(){
|
||||
return new ToStringBuilder(this).append("name", this.name)
|
||||
.append("age", this.age).append("smoker", this.smoker)
|
||||
|
|
|
@ -379,6 +379,7 @@ public class EventCountCircuitBreakerTest {
|
|||
changedValues = new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void propertyChange(final PropertyChangeEvent evt) {
|
||||
assertEquals("Wrong event source", expectedSource, evt.getSource());
|
||||
assertEquals("Wrong property name", "open", evt.getPropertyName());
|
||||
|
|
Loading…
Reference in New Issue