Repository: groovy
Updated Branches:
  refs/heads/master 3471f55ea -> b673737a6


Trivial refactoring: remove unnecessary unboxing


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/b673737a
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/b673737a
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/b673737a

Branch: refs/heads/master
Commit: b673737a62f04308bb1d7c03b4eb4a186657d750
Parents: 3471f55
Author: sunlan <[email protected]>
Authored: Tue Jan 30 13:34:20 2018 +0800
Committer: sunlan <[email protected]>
Committed: Tue Jan 30 13:34:32 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/b673737a/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);
         }

Reply via email to