Skip to content

Commit 8bc5b4e

Browse files
committed
Merge pull request #535 from Johnny Lim
* gh-535: Polish JsonContentHandler.isEmptyCollection()
2 parents 1d52ba8 + 7f86552 commit 8bc5b4e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

spring-restdocs-core/src/main/java/org/springframework/restdocs/payload/JsonContentHandler.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ private boolean isEmptyCollection(Object value) {
9494
return false;
9595
}
9696
Collection<?> collection = (Collection<?>) value;
97-
if (collection.isEmpty()) {
98-
return true;
99-
}
10097
for (Object entry : collection) {
10198
if (!isEmptyCollection(entry)) {
10299
return false;

0 commit comments

Comments
 (0)