ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1311742 - /ace/trunk/ace-builder/src/main/java/org/apache/ace/builder/DeploymentPackageBuilder.java
Date Tue, 10 Apr 2012 14:13:12 GMT
Author: marrs
Date: Tue Apr 10 14:13:11 2012
New Revision: 1311742

URL: http://svn.apache.org/viewvc?rev=1311742&view=rev
Log:
Small changes to make the code better readable.

Modified:
    ace/trunk/ace-builder/src/main/java/org/apache/ace/builder/DeploymentPackageBuilder.java

Modified: ace/trunk/ace-builder/src/main/java/org/apache/ace/builder/DeploymentPackageBuilder.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-builder/src/main/java/org/apache/ace/builder/DeploymentPackageBuilder.java?rev=1311742&r1=1311741&r2=1311742&view=diff
==============================================================================
--- ace/trunk/ace-builder/src/main/java/org/apache/ace/builder/DeploymentPackageBuilder.java
(original)
+++ ace/trunk/ace-builder/src/main/java/org/apache/ace/builder/DeploymentPackageBuilder.java
Tue Apr 10 14:13:11 2012
@@ -246,18 +246,18 @@ public class DeploymentPackageBuilder {
                     output.write(buffer, 0, bytes);
                     bytes = fis.read(buffer);
                 }
-                output.closeEntry();
                 fis.close();
+                output.closeEntry();
                 fis = null;
             }
         }
         finally {
+        	if (fis != null) {
+        		fis.close();
+        	}
             if (output != null) {
             	output.close();
             }
-            if (fis != null) {
-                fis.close();
-            }
         }
     }
 	private synchronized int getUniqueID() {



Mime
View raw message