We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d0c02 commit 57136d6Copy full SHA for 57136d6
spring-core/src/main/java/org/springframework/util/StringUtils.java
@@ -825,7 +825,7 @@ else if (TOP_PATH.equals(element)) {
825
* @return whether the two paths are equivalent after normalization
826
*/
827
public static boolean pathEquals(String path1, String path2) {
828
- return (path1 == null || path2 == null) ? false : cleanPath(path1).equals(cleanPath(path2));
+ return (path1 != null && path2 != null) && cleanPath(path1).equals(cleanPath(path2));
829
}
830
831
/**
0 commit comments