Skip to content

Commit

Permalink
Fix StringListQueryList (#282)
Browse files Browse the repository at this point in the history
The class StringListQueryList returned the wrong InputStream type.
  • Loading branch information
nck-mlcnv authored Oct 11, 2024
1 parent d795c57 commit c01273b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.aksw.iguana.cc.query.list.impl;

import org.aksw.iguana.cc.query.list.QueryList;
import org.aksw.iguana.commons.io.ByteArrayListInputStream;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
Expand All @@ -22,7 +22,7 @@ public String getQuery(int index) throws IOException {

@Override
public InputStream getQueryStream(int index) throws IOException {
return new ByteArrayInputStream(queries.get(index).getBytes());
return new ByteArrayListInputStream(List.of(queries.get(index).getBytes()));
}

@Override
Expand Down

0 comments on commit c01273b

Please sign in to comment.