Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-12-19 18:11:36 +0000
committerAlexander Kurtakov2020-01-15 08:17:32 +0000
commit6ded71d47a2c4b3c2acc086040e4d75f2341ceb7 (patch)
treeb151b4b8bf4dc65975387b80ec5eed3dd0792c7a /org.eclipse.core.filebuffers
parentf4cc6a3ffa8fa4ea7b2dfdcd2709ca27936fcdcd (diff)
downloadeclipse.platform.text-6ded71d47a2c4b3c2acc086040e4d75f2341ceb7.tar.gz
eclipse.platform.text-6ded71d47a2c4b3c2acc086040e4d75f2341ceb7.tar.xz
eclipse.platform.text-6ded71d47a2c4b3c2acc086040e4d75f2341ceb7.zip
Remove unnecessary array creation for varargs in bundlesI20200116-0930I20200116-0330I20200116-0310I20200115-1800
Using the batch cleanup operation via Source -> Cleanup -> "Remove unnecessary array creation for varargs " from standard JDT. See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=559175 applying this cleanup to LinkedModeConfigurationBlock results in a syntax error Change-Id: I097502952bbb3263c8b3253efff95a0d1981acf2 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.core.filebuffers')
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/NLSUtility.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/NLSUtility.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/NLSUtility.java
index 4b2b991a289..f4825880b14 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/NLSUtility.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/NLSUtility.java
@@ -31,7 +31,7 @@ public class NLSUtility {
* @return the formatted string
*/
public static String format(String message, Object argument) {
- return MessageFormat.format(message, new Object[] { argument });
+ return MessageFormat.format(message, argument);
}
/**

Back to the top