INT-1969 polished PayloadTypeRouter support for determining the weight of sub-classes

This commit is contained in:
Oleg Zhurakousky
2011-07-15 23:25:24 -04:00
parent 4929fff7e5
commit f31aff1c27
3 changed files with 40 additions and 8 deletions

View File

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