All branches in a conditional structure should not have exactly the same implementation
This commit is contained in:
committed by
Juergen Hoeller
parent
ab96bb5428
commit
93abe0e94b
@@ -268,10 +268,7 @@ public class UrlPathHelper {
|
||||
}
|
||||
c1 = requestUri.charAt(index1);
|
||||
}
|
||||
if (c1 == c2) {
|
||||
continue;
|
||||
}
|
||||
else if (ignoreCase && (Character.toLowerCase(c1) == Character.toLowerCase(c2))) {
|
||||
if (c1 == c2 || ignoreCase && (Character.toLowerCase(c1) == Character.toLowerCase(c2))) {
|
||||
continue;
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user