Repository: groovy Updated Branches: refs/heads/GROOVY_2_4_X cbefc2811 -> ac7672a19
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/ac7672a1 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/ac7672a1 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/ac7672a1 Branch: refs/heads/GROOVY_2_4_X Commit: ac7672a19a90dacd7fc8442af4ad0b85ef0b2b9a Parents: cbefc28 Author: sunlan <[email protected]> Authored: Tue Jan 30 13:34:20 2018 +0800 Committer: sunlan <[email protected]> Committed: Tue Jan 30 15:19:23 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/ac7672a1/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); }
