searchiterator.getSize() is deprecated

This commit is contained in:
Emmanuel Engelhart 2023-12-16 14:33:35 +01:00
parent 5d7e1a3b5a
commit 435cf3a302
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3
4 changed files with 0 additions and 4 deletions

View File

@ -50,7 +50,6 @@ GETTER(jint, getScore)
GETTER(jstring, getSnippet)
GETTER(jint, getWordCount)
GETTER(jint, getFileIndex)
GETTER(jint, getSize)
METHOD0(jstring, getZimId) {
return TO_JNI(std::string(THIS->getZimId()));

View File

@ -30,7 +30,6 @@ public class SearchIterator implements Iterator<Entry>
public native String getSnippet();
public native int getWordCount();
public native int getFileIndex();
public native int getSize();
public native String getZimId();
public native boolean hasNext();

View File

@ -32,7 +32,6 @@ public class TestSearchIterator implements Iterator<TestEntry>
public String getSnippet() { return inner.getSnippet(); }
public int getWordCount() { return inner.getWordCount(); }
public int getFileIndex() { return inner.getFileIndex(); }
public int getSize() { return inner.getSize(); }
public String getZimId() { return inner.getZimId(); }
public boolean hasNext() { return inner.hasNext(); }

View File

@ -510,7 +510,6 @@ public class test {
assertEquals("<b>Test</b> ZIM file", iterator.getSnippet());
assertEquals(3, iterator.getWordCount());
assertEquals(0, iterator.getFileIndex());
assertEquals(-1, iterator.getSize());
assertEquals("e34f5109-ed0d-b93e-943d-06f7717c7340", iterator.getZimId());
TestEntry entry = iterator.next();
assertEquals("main.html", entry.getPath());