OpenNTF / org.openntf.domino

Open replacement for lotus.domino package in HCL Domino
Apache License 2.0
65 stars 34 forks source link

DocumentCollection.isEmpty() is wrong #132

Closed MarkusLanger closed 4 years ago

MarkusLanger commented 9 years ago

public boolean isEmpty() {
return this.size() > 0; }

Is checking is this.size() > 0, so actually returning whether it's NOT empty.

spanky762 commented 9 years ago

I have verified this in my own testing. Created a DocumentCollection with 1 document. collection.getCount() returns 1 collection.isEmpty() returns true collection.getFirstDocument() returns a valid document.