jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1309713 - /jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/util/ExceptionFactory.java
Date Thu, 05 Apr 2012 09:19:50 GMT
Author: jukka
Date: Thu Apr  5 09:19:49 2012
New Revision: 1309713

URL: http://svn.apache.org/viewvc?rev=1309713&view=rev
Log:
Remove dead code

Modified:
    jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/util/ExceptionFactory.java

Modified: jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/util/ExceptionFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/util/ExceptionFactory.java?rev=1309713&r1=1309712&r2=1309713&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/util/ExceptionFactory.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/util/ExceptionFactory.java
Thu Apr  5 09:19:49 2012
@@ -49,14 +49,10 @@ public class ExceptionFactory {
                 if (in == null) {
                     in = new FileInputStream("target/maven-archiver/pom.properties");
                 }
-                if (in == null) {
-                    version = "";
-                } else {
-                    Properties prop = new Properties();
-                    prop.load(in);
-                    in.close();
-                    version = "[" + prop.getProperty("artifactId") + "-" + prop.getProperty("version")
+ "]";
-                }
+                Properties prop = new Properties();
+                prop.load(in);
+                in.close();
+                version = "[" + prop.getProperty("artifactId") + "-" + prop.getProperty("version")
+ "]";
             } catch (IOException e) {
                 version = "";
             }



Mime
View raw message