diff options
author | Alexander Kurtakov | 2017-05-18 10:15:21 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-05-18 11:55:19 +0000 |
commit | 7cf4a497c86e0216748e457bbd8975e548905d72 (patch) | |
tree | d49e8e2966160a1068db895ecf7f2d32c5beba3c /profiling | |
parent | 38b372aafb8a31562de8a46cb933cd09b55c9927 (diff) | |
download | org.eclipse.linuxtools-7cf4a497c86e0216748e457bbd8975e548905d72.tar.gz org.eclipse.linuxtools-7cf4a497c86e0216748e457bbd8975e548905d72.tar.xz org.eclipse.linuxtools-7cf4a497c86e0216748e457bbd8975e548905d72.zip |
Use varargs MessageFormat.format method.
Removes a bunch of casts and arrays definitions.
Change-Id: I3839aa2ed1c8df6ae4923597cff8b0d44d5c0742
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/97421
Tested-by: Hudson CI
Diffstat (limited to 'profiling')
-rw-r--r-- | profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/internal/profiling/launch/provider/launch/ProviderLaunchShortcut.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/internal/profiling/launch/provider/launch/ProviderLaunchShortcut.java b/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/internal/profiling/launch/provider/launch/ProviderLaunchShortcut.java index e3eef8d867..92be1294e9 100644 --- a/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/internal/profiling/launch/provider/launch/ProviderLaunchShortcut.java +++ b/profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/internal/profiling/launch/provider/launch/ProviderLaunchShortcut.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 Red Hat, Inc. + * Copyright (c) 2012, 2017 Red Hat, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -132,9 +132,8 @@ public class ProviderLaunchShortcut extends ProfileLaunchShortcut implements IEx + type.substring(1); // prompt message - String promptMsg = MessageFormat.format( - Messages.ProviderLaunchConfigurationPrompt_0, - (Object[]) new String[] { profileType, provider }); + String promptMsg = MessageFormat.format(Messages.ProviderLaunchConfigurationPrompt_0, profileType, + provider); MessageBox prompt = new MessageBox(getActiveWorkbenchShell(), SWT.ICON_QUESTION | SWT.YES | SWT.NO); |