Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
0.6
-
None
Description
The getTopNProducts method in org.apache.oodt.cas.filemgr.catalog.LuceneCatalog currently has the following return statement:
LuceneCatalog.java
public List<Product> getTopNProducts(int n, ProductType type) throws CatalogException { ... if (products != null) { return products; } else return null; }
I believe that we can replace the above statement with the following:
LuceneCatalog.java
public List<Product> getTopNProducts(int n, ProductType type) throws CatalogException { ... return products; }