Remove commented code

This commit is contained in:
Oleg Zhurakousky
2020-09-21 17:24:52 +02:00
parent 43290cc529
commit 612d54ba53
2 changed files with 2 additions and 19 deletions

View File

@@ -32,11 +32,6 @@ public interface FunctionInspector {
default boolean isMessage(Object function) {
FunctionRegistration<?> registration = getRegistration(function);
// if (registration != null && registration.getTarget() instanceof FunctionInvocationWrapper
// && ((FunctionInvocationWrapper) registration.getTarget()).getTarget() instanceof RoutingFunction) {
// // we always want to give routing function as much information as possible
// return true;
// }
if (registration != null && registration.getTarget() instanceof RoutingFunction) {
return true;
}

View File

@@ -454,24 +454,12 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
@Override
public int hashCode() {
if (this.delegate != null) {
return this.delegate.hashCode();
}
else {
return this.target.hashCode();
}
//return super.hashCode();
return this.delegate == null ? this.target.hashCode() : this.delegate.hashCode();
}
@Override
public boolean equals(Object o) {
if (this.delegate != null) {
return this.delegate.equals(o);
}
else {
return this.target.equals(o);
}
// return super.equals(o);
return this.delegate == null ? this.target.equals(o) : this.delegate.equals(o);
}
public String getFunctionDefinition() {