Skip to content

Commit 39925c3

Browse files
committed
Polishing
1 parent 2e55486 commit 39925c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-core/src/test/java/org/springframework/util/ObjectUtilsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public void isEmptyArray() {
102102
assertTrue(isEmpty(new Object[0]));
103103
assertTrue(isEmpty(new Integer[0]));
104104

105-
assertFalse(isEmpty(new int[] { 42 }));
106-
assertFalse(isEmpty(new Integer[] { 42 }));
105+
assertFalse(isEmpty(new int[] {42}));
106+
assertFalse(isEmpty(new Integer[] {42}));
107107
}
108108

109109
@Test

spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ protected boolean isInvalidPath(String path) {
657657
}
658658
if (path.contains("..") && StringUtils.cleanPath(path).contains("../")) {
659659
if (logger.isTraceEnabled()) {
660-
logger.trace("Invalid Path contains \"../\" after call to StringUtils#cleanPath: [" + path + "]");
660+
logger.trace("Path contains \"../\" after call to StringUtils#cleanPath: [" + path + "]");
661661
}
662662
return true;
663663
}

0 commit comments

Comments
 (0)