Remove commented code
This commit is contained in:
@@ -32,11 +32,6 @@ public interface FunctionInspector {
|
|||||||
|
|
||||||
default boolean isMessage(Object function) {
|
default boolean isMessage(Object function) {
|
||||||
FunctionRegistration<?> registration = getRegistration(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) {
|
if (registration != null && registration.getTarget() instanceof RoutingFunction) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -454,24 +454,12 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
if (this.delegate != null) {
|
return this.delegate == null ? this.target.hashCode() : this.delegate.hashCode();
|
||||||
return this.delegate.hashCode();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return this.target.hashCode();
|
|
||||||
}
|
|
||||||
//return super.hashCode();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this.delegate != null) {
|
return this.delegate == null ? this.target.equals(o) : this.delegate.equals(o);
|
||||||
return this.delegate.equals(o);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return this.target.equals(o);
|
|
||||||
}
|
|
||||||
// return super.equals(o);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFunctionDefinition() {
|
public String getFunctionDefinition() {
|
||||||
|
|||||||
Reference in New Issue
Block a user