commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1748882 - /commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java
Date Fri, 17 Jun 2016 17:45:30 GMT
Author: ggregory
Date: Fri Jun 17 17:45:30 2016
New Revision: 1748882

URL: http://svn.apache.org/viewvc?rev=1748882&view=rev
Log:
Format nits.

Modified:
    commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java

Modified: commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java?rev=1748882&r1=1748881&r2=1748882&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java (original)
+++ commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java Fri
Jun 17 17:45:30 2016
@@ -60,23 +60,23 @@ public class BCELifierTestCase {
         return input;
     }
 
-    private String exec(final File workDir, final String ... args) throws Exception {
-//        System.err.println(java.util.Arrays.toString(args));
-        ProcessBuilder pb = new ProcessBuilder( args );
+    private String exec(final File workDir, final String... args) throws Exception {
+        // System.err.println(java.util.Arrays.toString(args));
+        ProcessBuilder pb = new ProcessBuilder(args);
         pb.directory(workDir);
         Process proc = pb.start();
         BufferedInputStream is = new BufferedInputStream(proc.getInputStream());
         InputStream es = proc.getErrorStream();
         proc.waitFor();
-        byte []buff=new byte[2048];
+        byte[] buff = new byte[2048];
         int len;
-        while((len=es.read(buff)) != -1) {
-            System.err.print(new String(buff,0,len));
+        while ((len = es.read(buff)) != -1) {
+            System.err.print(new String(buff, 0, len));
         }
-        
+
         StringBuilder sb = new StringBuilder();
-        while((len=is.read(buff)) != -1) {
-            sb.append(new String(buff,0,len));
+        while ((len = is.read(buff)) != -1) {
+            sb.append(new String(buff, 0, len));
         }
         is.close();
         return sb.toString();



Mime
View raw message