Skip to content

Commit bc421f5

Browse files
Timothy Chengodrotbohm
authored andcommitted
DATACMNS-812 - Fixed PageImpl.toString() to improve readability.
Add one to the getNumber() in PageImpl.toString() since it uses 0-based index. Original pull request: #154.
1 parent deb884d commit bc421f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/domain/PageImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public String toString() {
118118
contentType = content.get(0).getClass().getName();
119119
}
120120

121-
return String.format("Page %s of %d containing %s instances", getNumber(), getTotalPages(), contentType);
121+
return String.format("Page %s of %d containing %s instances", getNumber()+1, getTotalPages(), contentType);
122122
}
123123

124124
/*

0 commit comments

Comments
 (0)