[hg] releases: Do not implisitly close input stream in NativeExe...

  • From: Andrew Krasny < >
  • To:
  • Subject: [hg] releases: Do not implisitly close input stream in NativeExe...
  • Date: Mon, 17 Dec 2012 13:12:27 -0800

changeset b499c78cc279 in releases ((none))
details: http://hg.netbeans.org/releases/rev/b499c78cc279
description:
        Do not implisitly close input stream in NativeExecutionService

diffstat:

 
dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/execution/NativeExecutionService.java
 |  8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diffs (32 lines):

diff --git 
a/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/execution/NativeExecutionService.java
 
b/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/execution/NativeExecutionService.java
--- 
a/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/execution/NativeExecutionService.java
+++ 
b/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/execution/NativeExecutionService.java
@@ -42,7 +42,6 @@
 package org.netbeans.modules.nativeexecution.api.execution;
 
 import java.awt.event.ActionEvent;
-import java.io.Reader;
 import java.nio.charset.Charset;
 import java.util.EnumSet;
 import java.util.concurrent.Callable;
@@ -351,7 +350,6 @@
             public Void run() {
                 final OutputWriter out = descriptor.inputOutput.getOut();
                 final OutputWriter err = descriptor.inputOutput.getErr();
-                final Reader in = descriptor.inputOutput.getIn();
                 if (err != null) {
                     try {
                         err.close();
@@ -364,12 +362,6 @@
                     } catch (Throwable th) {
                     }
                 }
-                if (in != null) {
-                    try {
-                        in.close();
-                    } catch (Throwable th) {
-                    }
-                }
                 return null;
             }
         });

[hg] releases: Do not implisitly close input stream in NativeExe...

Andrew Krasny 12/17/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close