INT-1969 polished PayloadTypeRouter support for determining the weight of sub-classes
This commit is contained in:
@@ -115,7 +115,7 @@ public class PayloadTypeRouter extends AbstractMessageRouter {
|
||||
}
|
||||
// check interface hierarchy
|
||||
for (Class<?> superInterface : iface.getInterfaces()) {
|
||||
int weight = this.determineTypeDifferenceWeight(candidate, superInterface, level + 2);
|
||||
int weight = this.determineTypeDifferenceWeight(candidate, superInterface, level + 3);
|
||||
if (weight < Integer.MAX_VALUE) {
|
||||
return weight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user