Skip to content

Commit

Permalink
Remove redundant type information
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Sep 13, 2023
1 parent c6a2477 commit 9c60bc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void generateRetrieveElementCall(Map<String, Object> entryInfos, IPath de
String sourceRepository = (String) entryInfos.get(KEY_REPOSITORY);

if (!iusToFetchBySource.containsKey(sourceRepository)) {
iusToFetchBySource.put(sourceRepository, new ArrayList<IUFetchInfo>());
iusToFetchBySource.put(sourceRepository, new ArrayList<>());
}

IUFetchInfo iuFetchInfo = new IUFetchInfo((String) entryInfos.get(KEY_ID), (String) entryInfos.get(KEY_VERSION));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class PackageConfigScriptGenerator extends AssembleConfigScriptGenerator
public void initialize(String directoryName, String feature, Config configurationInformation, Collection<BundleDescription> elementList, Collection<BuildTimeFeature> featureList, Collection<BuildTimeFeature> allFeaturesList, Collection<BuildTimeFeature> 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<BuildTimeFeature>(0));
super.initialize(directoryName, feature, configurationInformation, elementList, featureList, allFeaturesList, new ArrayList<>(0));
if (rootProviders != null) {
archiveRootProviders = rootProviders;
} else {
Expand All @@ -59,7 +59,7 @@ public void initialize(String directoryName, String feature, Config configuratio

@Override
protected Collection<BuildTimeFeature> getArchiveRootFileProviders() {
if (archiveRootProviders.size() > 0)
if (!archiveRootProviders.isEmpty())
return archiveRootProviders;
return super.getArchiveRootFileProviders();
}
Expand Down

0 comments on commit 9c60bc8

Please sign in to comment.