incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r832601 - /sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java
Date Tue, 03 Nov 2009 23:30:42 GMT
Author: cziegeler
Date: Tue Nov  3 23:30:41 2009
New Revision: 832601

URL: http://svn.apache.org/viewvc?rev=832601&view=rev
Log:
Remove redundant null check

Modified:
    sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java

Modified: sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java?rev=832601&r1=832600&r2=832601&view=diff
==============================================================================
--- sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java
(original)
+++ sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/BootstrapInstaller.java
Tue Nov  3 23:30:41 2009
@@ -536,9 +536,7 @@
     private Manifest getManifest(File jar) {
         try {
             InputStream ins = new FileInputStream(jar);
-            if (ins != null) {
-                return getManifest(ins);
-            }
+            return getManifest(ins);
         } catch (FileNotFoundException e) {
             logger.log(Logger.LOG_WARNING, "Could not get inputstream from file ("+jar+"):"+e);
             //throw new IllegalArgumentException("Could not get inputstream from file ("+jar+"):"+e,
e);



Mime
View raw message