From b03397108cbbb748dd0e9fd14c3b7192421b5c99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Wed, 13 Sep 2023 10:26:42 +0300 Subject: [PATCH] Remove redundant type information --- .../eclipse/pde/internal/build/fetch/P2IUFetchFactory.java | 2 +- .../internal/build/packager/PackageConfigScriptGenerator.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/fetch/P2IUFetchFactory.java b/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/fetch/P2IUFetchFactory.java index 2be77b2047..67b19ff030 100644 --- a/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/fetch/P2IUFetchFactory.java +++ b/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/fetch/P2IUFetchFactory.java @@ -161,7 +161,7 @@ public void generateRetrieveElementCall(Map entryInfos, IPath de String sourceRepository = (String) entryInfos.get(KEY_REPOSITORY); if (!iusToFetchBySource.containsKey(sourceRepository)) { - iusToFetchBySource.put(sourceRepository, new ArrayList()); + iusToFetchBySource.put(sourceRepository, new ArrayList<>()); } IUFetchInfo iuFetchInfo = new IUFetchInfo((String) entryInfos.get(KEY_ID), (String) entryInfos.get(KEY_VERSION)); diff --git a/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/packager/PackageConfigScriptGenerator.java b/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/packager/PackageConfigScriptGenerator.java index 54eee3cbfd..43f846e24a 100644 --- a/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/packager/PackageConfigScriptGenerator.java +++ b/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/packager/PackageConfigScriptGenerator.java @@ -49,7 +49,7 @@ public class PackageConfigScriptGenerator extends AssembleConfigScriptGenerator public void initialize(String directoryName, String feature, Config configurationInformation, Collection elementList, Collection featureList, Collection allFeaturesList, Collection rootProviders) throws CoreException { /* package scripts require the root file providers for creating the file archive, but don't want them for other rootfile * stuff done by the assembly scripts, so keep them separate here */ - super.initialize(directoryName, feature, configurationInformation, elementList, featureList, allFeaturesList, new ArrayList(0)); + super.initialize(directoryName, feature, configurationInformation, elementList, featureList, allFeaturesList, new ArrayList<>(0)); if (rootProviders != null) { archiveRootProviders = rootProviders; } else { @@ -59,7 +59,7 @@ public void initialize(String directoryName, String feature, Config configuratio @Override protected Collection getArchiveRootFileProviders() { - if (archiveRootProviders.size() > 0) + if (!archiveRootProviders.isEmpty()) return archiveRootProviders; return super.getArchiveRootFileProviders(); }