Skip to content

Commit 3e02e68

Browse files
eclipse-pde-botakurtakov
authored andcommitted
Perform clean code of ui/org.eclipse.pde.core
1 parent 4873af8 commit 3e02e68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/BundleManifestSourceLocationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public void setPlugins(IPluginModelBase[] externalModels) {
251251
try {
252252
version = new Version(versionEntry);
253253
} catch (IllegalArgumentException e) {
254-
PDECore.log(Status.error(NLS.bind(PDECoreMessages.SourceLocationManager_problemProcessingBundleManifestSourceHeader, new Object[] {currentPlugin.getName(), versionEntry, path.toString()}), e));
254+
PDECore.log(Status.error(NLS.bind(PDECoreMessages.SourceLocationManager_problemProcessingBundleManifestSourceHeader, currentPlugin.getName(), versionEntry, path.toString()), e));
255255

256256
}
257257
fPluginToSourceBundle.put(new SourceLocationKey(binaryPluginName, version), model);

ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders/SourceEntryErrorReporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ private void validateSourceEncodings(List<SourceFolder> toValidate) {
496496
String expected = defaultLibraryEncodings.remove(lib);
497497
if (expected != null) {
498498
if (!specified.equals(expected)) {
499-
String msg = NLS.bind(PDECoreMessages.SourceEntryErrorReporter_0, new String[] { expected, specified, lib });
499+
String msg = NLS.bind(PDECoreMessages.SourceEntryErrorReporter_0, expected, specified, lib);
500500
prepareEncodingError(name, expected, msg, PDEMarkerFactory.B_REPLACE);
501501
}
502502
} else {
@@ -553,7 +553,7 @@ private void validateSourceEncodings(List<SourceFolder> toValidate) {
553553
prepareEncodingError(name, ee.toString(), msg, PDEMarkerFactory.B_REMOVAL);
554554
} else {
555555
if (!specified.equals(expected)) {
556-
String msg = NLS.bind(PDECoreMessages.SourceEntryErrorReporter_7, new String[] { expected, ee.resource().getProjectRelativePath().toString(), specified });
556+
String msg = NLS.bind(PDECoreMessages.SourceEntryErrorReporter_7, expected, ee.resource().getProjectRelativePath().toString(), specified);
557557
prepareEncodingError(name, ee.toString(), msg, PDEMarkerFactory.M_ONLY_CONFIG_SEV);
558558
}
559559
}

0 commit comments

Comments
 (0)