[Minor] Automated Code cleanup: Method is identical to its super method

This commit is contained in:
Robert von Burg 2023-04-04 14:18:25 +02:00
parent 3baeb04655
commit 1cd25775b9
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
7 changed files with 0 additions and 86 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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