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.
This commit is contained in:
Timothy Cheng
2016-01-29 15:55:05 -05:00
committed by Oliver Gierke
parent deb884dfb1
commit bc421f53c0

View File

@@ -118,7 +118,7 @@ public class PageImpl<T> extends Chunk<T> implements Page<T> {
contentType = content.get(0).getClass().getName();
}
return String.format("Page %s of %d containing %s instances", getNumber(), getTotalPages(), contentType);
return String.format("Page %s of %d containing %s instances", getNumber()+1, getTotalPages(), contentType);
}
/*