mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-13 13:35:13 +00:00
Add missing '@Override' annotations.
This commit is contained in:
parent
c9a5e54a7c
commit
23c706ff91
@ -49,6 +49,7 @@ public AbstractCircuitBreaker() {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isOpen() {
|
public boolean isOpen() {
|
||||||
return isOpen(state.get());
|
return isOpen(state.get());
|
||||||
}
|
}
|
||||||
@ -56,6 +57,7 @@ public boolean isOpen() {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isClosed() {
|
public boolean isClosed() {
|
||||||
return !isOpen();
|
return !isOpen();
|
||||||
}
|
}
|
||||||
@ -63,16 +65,19 @@ public boolean isClosed() {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public abstract boolean checkState();
|
public abstract boolean checkState();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public abstract boolean incrementAndCheckState(T increment);
|
public abstract boolean incrementAndCheckState(T increment);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
changeState(State.CLOSED);
|
changeState(State.CLOSED);
|
||||||
}
|
}
|
||||||
@ -80,6 +85,7 @@ public void close() {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void open() {
|
public void open() {
|
||||||
changeState(State.OPEN);
|
changeState(State.OPEN);
|
||||||
}
|
}
|
||||||
|
@ -4289,6 +4289,7 @@ public void testIsSorted() {
|
|||||||
@Test
|
@Test
|
||||||
public void testIsSortedComparator() {
|
public void testIsSortedComparator() {
|
||||||
final Comparator<Integer> c = new Comparator<Integer>() {
|
final Comparator<Integer> c = new Comparator<Integer>() {
|
||||||
|
@Override
|
||||||
public int compare(final Integer o1, final Integer o2) {
|
public int compare(final Integer o1, final Integer o2) {
|
||||||
return o2.compareTo(o1);
|
return o2.compareTo(o1);
|
||||||
}
|
}
|
||||||
|
@ -104,6 +104,7 @@ static class TestData{
|
|||||||
this.expected = false;
|
this.expected = false;
|
||||||
this.throwable = throwable;
|
this.throwable = throwable;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public String toString(){
|
public String toString(){
|
||||||
final StringBuilder sb = new StringBuilder();
|
final StringBuilder sb = new StringBuilder();
|
||||||
sb.append(source).append("[").append(toffset).append("]");
|
sb.append(source).append("[").append(toffset).append("]");
|
||||||
|
@ -229,6 +229,7 @@ public void testPerson() {
|
|||||||
@Test
|
@Test
|
||||||
public void testNestingPerson() {
|
public void testNestingPerson() {
|
||||||
final Person p = new Person(){
|
final Person p = new Person(){
|
||||||
|
@Override
|
||||||
public String toString(){
|
public String toString(){
|
||||||
return new ToStringBuilder(this).append("name", this.name)
|
return new ToStringBuilder(this).append("name", this.name)
|
||||||
.append("age", this.age).append("smoker", this.smoker)
|
.append("age", this.age).append("smoker", this.smoker)
|
||||||
|
@ -379,6 +379,7 @@ public ChangeListener(final Object source) {
|
|||||||
changedValues = new ArrayList<>();
|
changedValues = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void propertyChange(final PropertyChangeEvent evt) {
|
public void propertyChange(final PropertyChangeEvent evt) {
|
||||||
assertEquals("Wrong event source", expectedSource, evt.getSource());
|
assertEquals("Wrong event source", expectedSource, evt.getSource());
|
||||||
assertEquals("Wrong property name", "open", evt.getPropertyName());
|
assertEquals("Wrong property name", "open", evt.getPropertyName());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user