mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
Allow builds with java 25 or java 11
This commit is contained in:
parent
9b22232722
commit
9060d4ba18
2 changed files with 26 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue