Skip to content

Eclipse reports QueryBatcherIteratorTest having a resource leak. #680

@georgeajit

Description

@georgeajit

Test method

 public void test_A_OnDiskIterator() throws Exception

at reader object, because it is not closed. We do a file in the /tmp folder with name QueryBatcherIteratorTest_

// now we have the uris, let's step through them and do nothing with them
AtomicInteger successDocs2 = new AtomicInteger(0);
BufferedReader reader = new BufferedReader(new FileReader(tempFile));

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions