Skip to content

Commit df97842

Browse files
eclipse-pde-botakurtakov
authored andcommitted
Perform clean code of apitools/org.eclipse.pde.api.tools.tests
1 parent ba3b5dd commit df97842

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/model/tests/TagScannerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected void doScan(String name, IApiDescription manifest, IApiTypeContainer c
8989
try {
9090
TagScanner.newScanner().scan(getCompilationUnit(name), manifest, cfc, null, null);
9191
} catch (CoreException e) {
92-
fail(MessageFormat.format("Error scanning: {0}", new Object[] { name })); //$NON-NLS-1$
92+
fail(MessageFormat.format("Error scanning: {0}", name)); //$NON-NLS-1$
9393
}
9494
}
9595

@@ -101,7 +101,7 @@ protected void doScan(String name, IApiDescription manifest) {
101101
try {
102102
TagScanner.newScanner().scan(getCompilationUnit(name), manifest, null, null, null);
103103
} catch (CoreException e) {
104-
fail(MessageFormat.format("Error scanning: {0}", new Object[] { name })); //$NON-NLS-1$
104+
fail(MessageFormat.format("Error scanning: {0}", name)); //$NON-NLS-1$
105105
}
106106
}
107107

@@ -113,7 +113,7 @@ protected void doScan(String name, IApiDescription manifest, Map<String, String>
113113
try {
114114
TagScanner.newScanner().scan(getCompilationUnit(name), manifest, null, options, null);
115115
} catch (CoreException e) {
116-
fail(MessageFormat.format("Error scanning: {0}", new Object[] { name })); //$NON-NLS-1$
116+
fail(MessageFormat.format("Error scanning: {0}", name)); //$NON-NLS-1$
117117
}
118118
}
119119

apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/util/tests/ApiDescriptionProcessorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private void createTagChanges(CompositeChange projectchange, IJavaProject projec
248248
TextEdit edit = null;
249249
for (Entry<IFile, Set<TextEdit>> entry : map.entrySet()) {
250250
file = entry.getKey();
251-
change = new TextFileChange(MessageFormat.format(WizardMessages.JavadocTagRefactoring_2, new Object[] { file.getName() }), file);
251+
change = new TextFileChange(MessageFormat.format(WizardMessages.JavadocTagRefactoring_2, file.getName()), file);
252252
multiedit = new MultiTextEdit();
253253
change.setEdit(multiedit);
254254
alledits = entry.getValue();

0 commit comments

Comments
 (0)