aboutsummaryrefslogtreecommitdiff
path: root/nailgun_launcher/NailgunLauncher.java
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-03-07 01:36:40 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-03-07 01:36:40 -0500
commite958dec0dbbcf7f7a28cd21641e76390fb3dba6a (patch)
treeec0933e230b0c3f222fceb82b3eec177d56ea979 /nailgun_launcher/NailgunLauncher.java
parentf0dc760df8757caea1d83b15142a3d0704488636 (diff)
downloadcbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.tar.gz
cbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.tar.bz2
cbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.zip
cleanup: whitespace changes, separated more things into their own files, use ++ for strings everywhere. Added ++ method to File and URL and use it in many places
Diffstat (limited to 'nailgun_launcher/NailgunLauncher.java')
-rw-r--r--nailgun_launcher/NailgunLauncher.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/nailgun_launcher/NailgunLauncher.java b/nailgun_launcher/NailgunLauncher.java
index 3765457..78da041 100644
--- a/nailgun_launcher/NailgunLauncher.java
+++ b/nailgun_launcher/NailgunLauncher.java
@@ -7,7 +7,7 @@ import java.nio.file.*;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
-/**
+/**
* This launcher allows to start the JVM without loading anything else permanently into its
* classpath except for the launcher itself. That's why it is written in Java without
* dependencies outside the JDK.
@@ -17,16 +17,16 @@ import java.util.concurrent.ConcurrentHashMap;
*/
public class NailgunLauncher{
- /**
+ /**
* Persistent cache for caching classloaders for the JVM life time. Can be used as needed by user
- * code to improve startup time.
+ * code to improve startup time.
*/
- public static ConcurrentHashMap<String,ClassLoader> classLoaderCache =
+ public static ConcurrentHashMap<String,ClassLoader> classLoaderCache =
new ConcurrentHashMap<String,ClassLoader>();
- public static void main(String[] args) throws ClassNotFoundException,
- NoSuchMethodException,
- IllegalAccessException,
+ public static void main(String[] args) throws ClassNotFoundException,
+ NoSuchMethodException,
+ IllegalAccessException,
InvocationTargetException,
MalformedURLException {
if (args.length < 3) {
@@ -41,7 +41,7 @@ public class NailgunLauncher{
}
String[] newArgs = new String[args.length-2];
- for(int i = 0; i < args.length-2; i++){
+ for(int i = 0; i < args.length-2; i++){
newArgs[i] = args[i+2];
}