Improved: Replace explicit type argument with diamond operator(OFBIZ-11828)

Since Java 1.7, when defining generic types it is unnecessary to redefine those types in the constructor when it is already done in the declared type.
This commit is contained in:
Pawan Verma
2020-06-28 01:06:04 +05:30
parent 1f97f89bae
commit 2e415638b2
14 changed files with 192 additions and 192 deletions
@@ -351,7 +351,7 @@ public class ProductDocument implements LuceneDocument {
}
private Timestamp getParentCategories(Document doc, GenericValue productCategory, Set<String> indexedCategoryIds) throws GenericEntityException {
return this.getParentCategories(doc, productCategory, indexedCategoryIds, new TreeSet<String>());
return this.getParentCategories(doc, productCategory, indexedCategoryIds, new TreeSet<>());
}
private Timestamp getParentCategories(Document doc, GenericValue productCategory, Set<String> indexedCategoryIds, Set<String> indexedCatalogIds) throws GenericEntityException {