Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X c34a4a11f -> 8d26da595


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/8d26da59
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/8d26da59
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/8d26da59

Branch: refs/heads/GROOVY_2_6_X
Commit: 8d26da595c7810080b4503a027a3efa098c98cea
Parents: c34a4a1
Author: sunlan <[email protected]>
Authored: Tue Jan 30 13:34:20 2018 +0800
Committer: sunlan <[email protected]>
Committed: Tue Jan 30 15:17:07 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/8d26da59/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