[Minor] Automated Code cleanup: Method is identical to its super method
This commit is contained in:
parent
3baeb04655
commit
1cd25775b9
|
@ -116,11 +116,6 @@ public class LogMessage extends I18nMessage {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getMessage(Locale.getDefault());
|
||||
}
|
||||
|
||||
public JsonObject toJson() {
|
||||
|
||||
JsonObject jsonObject = new JsonObject();
|
||||
|
|
|
@ -49,11 +49,6 @@ public class PerformanceTestService extends AbstractService<PerformanceTestArgum
|
|||
return new PerformanceTestArgument();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isArgumentRequired() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected PerformanceTestResult internalDoService(PerformanceTestArgument arg) {
|
||||
|
||||
|
|
|
@ -796,22 +796,6 @@ public class SynchronizedCollections {
|
|||
SynchronizedSet(Set<E> s, Object mutex) {
|
||||
super(s, mutex);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o)
|
||||
return true;
|
||||
synchronized (this.mutex) {
|
||||
return c.equals(o);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
synchronized (this.mutex) {
|
||||
return c.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static class SynchronizedSortedSet<E> extends SynchronizedSet<E> implements SortedSet<E> {
|
||||
|
|
|
@ -83,19 +83,4 @@ public class IdOfSubTypeRef extends ObjectRef {
|
|||
PersistenceContextFactory<T> persistenceContextFactory = ctxFactoryDelegator.getCtxFactory(getType());
|
||||
return persistenceContextFactory.createCtx(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o)
|
||||
return true;
|
||||
if (o == null || getClass() != o.getClass())
|
||||
return false;
|
||||
ObjectRef objectRef = (ObjectRef) o;
|
||||
return Objects.equals(this.name, objectRef.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(this.name);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,19 +79,4 @@ public class IdOfTypeRef extends ObjectRef {
|
|||
PersistenceContextFactory<T> persistenceContextFactory = ctxFactoryDelegator.getCtxFactory(getType());
|
||||
return persistenceContextFactory.createCtx(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o)
|
||||
return true;
|
||||
if (o == null || getClass() != o.getClass())
|
||||
return false;
|
||||
ObjectRef objectRef = (ObjectRef) o;
|
||||
return Objects.equals(this.name, objectRef.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(this.name);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,19 +73,4 @@ public class RootRef extends ObjectRef {
|
|||
.format("{0} is not a leaf and can thus not have a Persistence Context", getName());
|
||||
throw new UnsupportedOperationException(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o)
|
||||
return true;
|
||||
if (o == null || getClass() != o.getClass())
|
||||
return false;
|
||||
ObjectRef objectRef = (ObjectRef) o;
|
||||
return Objects.equals(this.name, objectRef.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(this.name);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,19 +73,4 @@ public class SubTypeRef extends ObjectRef {
|
|||
.format("{0} is not a leaf and can thus not have a Persistence Context", getName());
|
||||
throw new UnsupportedOperationException(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o)
|
||||
return true;
|
||||
if (o == null || getClass() != o.getClass())
|
||||
return false;
|
||||
ObjectRef objectRef = (ObjectRef) o;
|
||||
return Objects.equals(this.name, objectRef.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(this.name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue