fix: use NullOutputStream.NULL_OUTPUT_STREAM rather than NullOutputStream.INSTANCE (#256)

Fixes an issue I was encountering where NullOutputStream.INSTANCE did not exist - unsure why it did not, but this change doesn't change anything since INSTANCE and NULL_OUTPUT_STREAM are the same, and other parts of the code base already use NULL_OUTPUT_STREAM
This commit is contained in:
Jamalam
2024-12-24 11:10:54 +00:00
committed by GitHub
parent 02a29e41e7
commit 24c82013af

View File

@@ -77,13 +77,13 @@ public abstract class ForgeToolExecutor {
if (settings.getShowVerboseStdout().get()) {
spec.setStandardOutput(System.out);
} else {
spec.setStandardOutput(NullOutputStream.INSTANCE);
spec.setStandardOutput(NullOutputStream.NULL_OUTPUT_STREAM);
}
if (settings.getShowVerboseStderr().get()) {
spec.setErrorOutput(System.err);
} else {
spec.setErrorOutput(NullOutputStream.INSTANCE);
spec.setErrorOutput(NullOutputStream.NULL_OUTPUT_STREAM);
}
});
}