You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (otherStaticAndWildcardTokenCount==0 && thisStaticAndWildcardTokenCount>0) {
808
+
if(LOG.isDebugEnabled()) {
809
+
LOG.debug("Mapping [{}] has a higher precedence than [{}] because it has more path tokens [{} vs {}]", this.toString(), other.toString(), thisStaticAndWildcardTokenCount, otherStaticAndWildcardTokenCount);
810
+
}
779
811
return1;
780
812
}
781
813
if (thisStaticAndWildcardTokenCount==0 && otherStaticAndWildcardTokenCount>0) {
814
+
if(LOG.isDebugEnabled()) {
815
+
LOG.debug("Mapping [{}] has a higher precedence than [{}] because the latter has more path tokens [{} vs {}]", this.toString(), other.toString(), thisStaticAndWildcardTokenCount, otherStaticAndWildcardTokenCount);
LOG.debug("Mapping [{}] has a lower precedence than [{}] because the latter has more concrete path tokens [{} vs {}]", this.toString(), other.toString(), thisStaticTokenCount, otherStaticTokenCount);
824
+
}
825
+
return -1;
788
826
}
789
827
elseif(staticDiff > 0 && !hasWildCards) {
790
-
returnstaticDiff;
828
+
if(LOG.isDebugEnabled()) {
829
+
LOG.debug("Mapping [{}] has a higher precedence than [{}] because it has more concrete path tokens [{} vs {}]", this.toString(), other.toString(), thisStaticTokenCount, otherStaticTokenCount);
if (doubleWildcardDiff != 0) returndoubleWildcardDiff;
861
+
if (doubleWildcardDiff != 0) {
862
+
if(LOG.isDebugEnabled()) {
863
+
if(doubleWildcardDiff > 0) {
864
+
LOG.debug("Mapping [{}] has a higher precedence than [{}] due containing more double wild cards [{} vs. {}]", this.toString(), other.toString(), thisDoubleWildcardCount, otherDoubleWildcardCount);
865
+
}
866
+
elseif(doubleWildcardDiff < 0) {
867
+
LOG.debug("Mapping [{}] has a lower precedence than [{}] due to the latter containing more double wild cards [{} vs. {}]", this.toString(), other.toString(), thisDoubleWildcardCount, otherDoubleWildcardCount);
if (singleWildcardDiff != 0) returnsingleWildcardDiff;
874
+
if (singleWildcardDiff != 0) {
875
+
if(LOG.isDebugEnabled()) {
876
+
if(singleWildcardDiff > 0) {
877
+
LOG.debug("Mapping [{}] has a higher precedence than [{}] because it contains more single wild card matches [{} vs. {}]", this.toString(), other.toString(), thisSingleWildcardCount, otherSingleWildcardCount);
878
+
}
879
+
elseif(singleWildcardDiff < 0) {
880
+
LOG.debug("Mapping [{}] has a lower precedence than [{}] due to the latter containing more single wild card matches[{} vs. {}]", this.toString(), other.toString(), thisSingleWildcardCount, otherSingleWildcardCount);
LOG.debug("Mapping [{}] has a higher precedence than [{}] since it defines more constraints [{} vs. {}]", this.toString(), other.toString(), thisConstraintCount, thatConstraintCount);
893
+
}
894
+
elseif(constraintDiff < 0) {
895
+
LOG.debug("Mapping [{}] has a lower precedence than [{}] since the latter defines more constraints [{} vs. {}]", this.toString(), other.toString(), thisConstraintCount, thatConstraintCount);
LOG.debug("Mapping [{}] has a lower precedence than [{}] due to version precedence [{} vs {}]", this.toString(), other.toString(), thisVersion, thatVersion);
LOG.debug("Mapping [{}] has a higher precedence than [{}] due to version precedence [{} vs {}]", this.toString(), other.toString(), thisVersion, thatVersion);
inti = newVersionComparator().compare(thisVersion, thatVersion);
936
+
if(LOG.isDebugEnabled()) {
937
+
if(i > 0) {
938
+
LOG.debug("Mapping [{}] has a higher precedence than [{}] due to version precedence [{} vs. {}]", this.toString(), other.toString(), thisVersion, thatVersion);
939
+
}
940
+
elseif(i < 0) {
941
+
LOG.debug("Mapping [{}] has a lower precedence than [{}] due to version precedence [{} vs. {}]", this.toString(), other.toString(), thisVersion, thatVersion);
942
+
}
943
+
else {
944
+
LOG.debug("Mapping [{}] has equal precedence with mapping [{}]", this.toString(), other.toString());
0 commit comments