Add missing '@Override' annotations.

This commit is contained in:
Gary Gregory 2016-11-16 16:47:00 -08:00
parent c9a5e54a7c
commit 23c706ff91
5 changed files with 10 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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("]");

View File

@ -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)

View File

@ -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());