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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user