Closed nck-mlcnv closed 1 year ago
The original line of code should work correctly, are you just trying to make it more readable?
It does work fine normally, but if the constructor of the BufferedReader throws an exception, the InputStream won't be closed. See: https://stackoverflow.com/a/1388772
The CLI-Worker will be removed with the new upcoming release
close as not planned
Change the line: https://github.com/dice-group/IGUANA/blob/efd02d5d4506a20428698c2831dd30af0543a427/iguana.corecontroller/src/main/java/org/aksw/iguana/cc/worker/impl/CLIWorker.java#L54
to something like this: