Java 8 compatibility

This commit is contained in:
Dominik Röschke
2024-05-02 14:49:09 +02:00
parent adbb7c1840
commit 37fb01c8fd
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -43,7 +44,7 @@ public class ResourceCase extends TestCase {
if (in == null) {
return null;
}
return in.readAllBytes();
return IOUtils.toByteArray(in);
} catch (IOException e) {
LOGGER.error(e.getMessage(), e);
return null;