Repository: groovy Updated Branches: refs/heads/GROOVY_2_5_X 55fd47b77 -> 30aefbaaf
Trivial refactoring: remove unnecessary unboxing (cherry picked from commit b673737) Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/30aefbaa Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/30aefbaa Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/30aefbaa Branch: refs/heads/GROOVY_2_5_X Commit: 30aefbaaf25b1792c698b75454ede7f7f55b3d96 Parents: 55fd47b Author: sunlan <[email protected]> Authored: Tue Jan 30 13:34:20 2018 +0800 Committer: sunlan <[email protected]> Committed: Tue Jan 30 15:18:28 2018 +0800 ---------------------------------------------------------------------- .../src/main/groovy/groovy/ui/SystemOutputInterceptor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/30aefbaa/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java ---------------------------------------------------------------------- diff --git a/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java b/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java index e294bb8..3d2a65b 100644 --- a/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java +++ b/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java @@ -96,7 +96,7 @@ public class SystemOutputInterceptor extends FilterOutputStream { * Intercepts output - more common case of byte[] */ public void write(byte[] b, int off, int len) throws IOException { - Boolean result = (Boolean) callback.call(consoleId.get().intValue(), new String(b, off, len)); + Boolean result = (Boolean) callback.call(consoleId.get(), new String(b, off, len)); if (result) { out.write(b, off, len); } @@ -106,7 +106,7 @@ public class SystemOutputInterceptor extends FilterOutputStream { * Intercepts output - single characters */ public void write(int b) throws IOException { - Boolean result = (Boolean) callback.call(consoleId.get().intValue(), String.valueOf((char) b)); + Boolean result = (Boolean) callback.call(consoleId.get(), String.valueOf((char) b)); if (result) { out.write(b); }
