Skip to content

Commit 6e830ad

Browse files
eclipse-pde-botakurtakov
authored andcommitted
Perform clean code of build/org.eclipse.pde.build
1 parent fe26aa2 commit 6e830ad

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/AntLogAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class AntLogAdapter implements ILog {
2828
public AntLogAdapter(Object antLog) throws NoSuchMethodException {
2929
this.antLog = antLog;
3030
try {
31-
log = antLog.getClass().getMethod("log", new Class[] {String.class, int.class}); //$NON-NLS-1$
31+
log = antLog.getClass().getMethod("log", String.class, int.class); //$NON-NLS-1$
3232
} catch (SecurityException e) {
3333
// TODO Auto-generated catch block
3434
e.printStackTrace();
@@ -51,9 +51,9 @@ public void log(IStatus status) {
5151
String statusMessage = status.getMessage();
5252
String exceptionMessage = status.getException() != null ? status.getException().getMessage() : null;
5353

54-
log.invoke(antLog, new Object[] {statusMessage, Integer.valueOf(mapLogLevels(status.getSeverity()))});
54+
log.invoke(antLog, statusMessage, Integer.valueOf(mapLogLevels(status.getSeverity())));
5555
if (exceptionMessage != null && !exceptionMessage.equals(statusMessage)) {
56-
log.invoke(antLog, new Object[] {exceptionMessage, Integer.valueOf(mapLogLevels(status.getSeverity()))});
56+
log.invoke(antLog, exceptionMessage, Integer.valueOf(mapLogLevels(status.getSeverity())));
5757
}
5858
IStatus[] nestedStatus = status.getChildren();
5959
if (nestedStatus != null) {

build/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/publisher/BrandP2Task.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ protected void publishBrandedIU(IMetadataRepository metadataRepo, IArtifactRepos
258258
newIUDescription.setArtifacts(new IArtifactKey[] {key});
259259

260260
IInstallableUnit newIU = MetadataFactory.createInstallableUnit(newIUDescription);
261-
metadataRepo.addInstallableUnits(Arrays.asList(new IInstallableUnit[] {newIU}));
261+
metadataRepo.addInstallableUnits(Arrays.asList(newIU));
262262

263263
publishBrandedArtifact(artifactRepo, key);
264264
}

build/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/tasks/LicenseReplaceTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public void execute() {
332332
while (licenseKeys.hasMoreElements()) {
333333
String licenseKey = (String) licenseKeys.nextElement();
334334
if (featureProperties.containsKey(licenseKey)) {
335-
throw new BuildException(NLS.bind(TaskMessages.error_conflictingProperties, new String[] {licenseKey, licensePropertyFile.getAbsolutePath(), featurePropertyFile.getAbsolutePath()}));
335+
throw new BuildException(NLS.bind(TaskMessages.error_conflictingProperties, licenseKey, licensePropertyFile.getAbsolutePath(), featurePropertyFile.getAbsolutePath()));
336336
}
337337
}
338338
} catch (FileNotFoundException e) {

0 commit comments

Comments
 (0)