Replaced Collection.size() > 0 through !Collection.isEmpty()

This commit is contained in:
Patrick Gotthard 2014-04-13 20:29:45 +02:00
parent c217eca998
commit 9918198dfc

View file

@ -159,7 +159,7 @@ public class ConverterForOPML10 implements Converter {
cat.setName(nodeName);
entry.getCategories().add(cat);
if (context.size() > 0) {
if (!context.isEmpty()) {
final Integer parent = context.peek();
final SyndCategory pcat = new TreeCategoryImpl();
pcat.setTaxonomyUri(URI_TREE);