Allow builds with java 25 or java 11

This commit is contained in:
svanteschubert 2026-02-17 17:55:41 +01:00 committed by Svante Schubert
parent 9b22232722
commit 9060d4ba18
2 changed files with 26 additions and 4 deletions

View file

@ -110,7 +110,12 @@ public class SourceInput extends AbstractInput {
return (ss.getInputStream() != null && ss.getInputStream().available() == 0)
|| (ss.getReader() != null && !ss.getReader().ready());
} catch (final IOException e) {
log.error("Error checking consumed state", e);
// Stream/reader closed is an expected outcome when consumed; avoid ERROR log
if (e.getMessage() == null || !e.getMessage().toLowerCase().contains("closed")) {
log.error("Error checking consumed state", e);
} else {
log.debug("Stream/reader closed when checking consumed state", e);
}
return true;
}
}