You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2015/04/29 16:21:53 UTC
svn commit: r1676749 -
/ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java
Author: adrianc
Date: Wed Apr 29 14:17:14 2015
New Revision: 1676749
URL: http://svn.apache.org/r1676749
Log:
Small fixup for my last commit.
Modified:
ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java
Modified: ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java?rev=1676749&r1=1676748&r2=1676749&view=diff
==============================================================================
--- ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java (original)
+++ ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java Wed Apr 29 14:17:14 2015
@@ -185,13 +185,13 @@ public final class Start {
stream = new FileInputStream(globalSystemPropsFileName);
System.getProperties().load(stream);
} catch (IOException e) {
- throw (StartupException) new StartupException("Couldn't load global system props").initCause(e);
+ throw new StartupException("Couldn't load global system props", e);
} finally {
if (stream != null) {
try {
stream.close();
} catch (IOException e) {
- throw (StartupException) new StartupException("Couldn't close stream").initCause(e);
+ throw new StartupException("Couldn't close stream", e);
}
}
}
@@ -199,7 +199,7 @@ public final class Start {
try {
this.config = new Config(args);
} catch (IOException e) {
- throw (StartupException) new StartupException("Couldn't not fetch config instance").initCause(e);
+ throw new StartupException("Couldn't not fetch config instance", e);
}
// parse the startup arguments
if (args.length > 1) {