Remove commented code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user