mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-03 05:57:42 -05:00
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:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user