Author: doogie
Date: Sun Jun 26 18:08:26 2011
New Revision: 1139863
URL:
http://svn.apache.org/viewvc?rev=1139863&view=revLog:
OPTIMIZE: All the fullinit code is no longer inside an if; instead, if fullinit is
not wanted, do an early return. This causes the code to remove one
indent level.
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=1139863&r1=1139862&r2=1139863&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 Sun Jun 26 18:08:26 2011
@@ -123,27 +123,28 @@ public class Start {
System.arraycopy(args, 0, this.loaderArgs, 0, this.loaderArgs.length);
}
- if (fullInit) {
- // initialize the classpath
- initClasspath();
-
- // create the log directory
- createLogDirectory();
-
- // create the listener thread
- createListenerThread();
-
- // set the shutdown hook
- if (config.useShutdownHook) {
- Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { shutdownServer(); } });
- } else {
- System.out.println("Shutdown hook disabled");
- }
+ if (!fullInit) {
+ return;
+ }
+ // initialize the classpath
+ initClasspath();
- // initialize the startup loaders
- if (!initStartLoaders()) {
- System.exit(99);
- }
+ // create the log directory
+ createLogDirectory();
+
+ // create the listener thread
+ createListenerThread();
+
+ // set the shutdown hook
+ if (config.useShutdownHook) {
+ Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { shutdownServer(); } });
+ } else {
+ System.out.println("Shutdown hook disabled");
+ }
+
+ // initialize the startup loaders
+ if (!initStartLoaders()) {
+ System.exit(99);
}
}