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:
committed by
Oliver Gierke
parent
deb884dfb1
commit
bc421f53c0
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user