diff options
author | Alexander Kurtakov | 2019-01-23 11:09:15 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2019-01-23 11:47:01 +0000 |
commit | e8dbcc1f420471e3e4a5e8a73adf54ade5633e8d (patch) | |
tree | d7a965d5a6c06da9d55b541a32c3243a59e1250b /bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/LauncherData.java | |
parent | 6098173f6ac7f3444d21074eab6d791db8646ad6 (diff) | |
download | rt.equinox.p2-e8dbcc1f420471e3e4a5e8a73adf54ade5633e8d.tar.gz rt.equinox.p2-e8dbcc1f420471e3e4a5e8a73adf54ade5633e8d.tar.xz rt.equinox.p2-e8dbcc1f420471e3e4a5e8a73adf54ade5633e8d.zip |
Code cleanup in frameworkadmin.
* Format.
* StringBuffer to StringBuilder
* forEach conversion
Change-Id: Id43871ac22efac8a83e4a47a1c272badd8de7d65
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/LauncherData.java')
-rw-r--r-- | bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/LauncherData.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/LauncherData.java b/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/LauncherData.java index cd9cc0725..ece7e5848 100644 --- a/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/LauncherData.java +++ b/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/provisional/frameworkadmin/LauncherData.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2017 IBM Corporation and others. + * Copyright (c) 2007, 2019 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -17,11 +17,11 @@ import java.io.File; import java.util.*; /** - * This object is instantiated by {@link Manipulator#getLauncherData()}; - * The class that keeps some parameters of the {@link Manipulator} - * created this object. The manipulating of the parameters will affect - * the {@link Manipulator}. - * + * This object is instantiated by {@link Manipulator#getLauncherData()}; The + * class that keeps some parameters of the {@link Manipulator} created this + * object. The manipulating of the parameters will affect the + * {@link Manipulator}. + * * * @see Manipulator */ @@ -141,10 +141,10 @@ public class LauncherData { } public void removeProgramArg(String arg) { - // We want to handle program args as key/value pairs subsequently - // a key MUST start with a "-", all other args are ignored. For - // backwards compatibility we remove all program args until the - // next program arg key + // We want to handle program args as key/value pairs subsequently + // a key MUST start with a "-", all other args are ignored. For + // backwards compatibility we remove all program args until the + // next program arg key // (see bug 253862) if (!arg.startsWith("-")) //$NON-NLS-1$ return; @@ -190,8 +190,8 @@ public class LauncherData { jvmArgs.clear(); return; } - for (int i = 0; i < args.length; i++) - this.addJvmArg(args[i]); + for (String arg : args) + this.addJvmArg(arg); } public void setLauncher(File launcherFile) { @@ -215,8 +215,8 @@ public class LauncherData { programArgs.clear(); return; } - for (int i = 0; i < args.length; i++) - this.addProgramArg(args[i]); + for (String arg : args) + this.addProgramArg(arg); } @Override |