Polish: "@Override" should be used on overriding and implementing methods
This commit is contained in:
committed by
Juergen Hoeller
parent
a19d4deb24
commit
8080f56db8
@@ -71,6 +71,7 @@ public class CompositeRequestCondition extends AbstractRequestCondition<Composit
|
||||
/**
|
||||
* Whether this instance contains 0 conditions or not.
|
||||
*/
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ObjectUtils.isEmpty(this.requestConditions);
|
||||
}
|
||||
|
||||
@@ -126,6 +126,7 @@ public final class ConsumesRequestCondition extends AbstractRequestCondition<Con
|
||||
/**
|
||||
* Whether the condition has any media type expressions.
|
||||
*/
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return this.expressions.isEmpty();
|
||||
}
|
||||
|
||||
@@ -150,6 +150,7 @@ public final class ProducesRequestCondition extends AbstractRequestCondition<Pro
|
||||
/**
|
||||
* Whether the condition has any media type expressions.
|
||||
*/
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return this.expressions.isEmpty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user