Replaced Collection.size() > 0 through !Collection.isEmpty()
This commit is contained in:
parent
c217eca998
commit
9918198dfc
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ public class ConverterForOPML10 implements Converter {
|
||||||
cat.setName(nodeName);
|
cat.setName(nodeName);
|
||||||
entry.getCategories().add(cat);
|
entry.getCategories().add(cat);
|
||||||
|
|
||||||
if (context.size() > 0) {
|
if (!context.isEmpty()) {
|
||||||
final Integer parent = context.peek();
|
final Integer parent = context.peek();
|
||||||
final SyndCategory pcat = new TreeCategoryImpl();
|
final SyndCategory pcat = new TreeCategoryImpl();
|
||||||
pcat.setTaxonomyUri(URI_TREE);
|
pcat.setTaxonomyUri(URI_TREE);
|
||||||
|
|
Loading…
Reference in a new issue