Author: nbelaevski
Date: 2010-12-10 12:04:10 -0500 (Fri, 10 Dec 2010)
New Revision: 20506
Modified:
trunk/ui/iteration/ui/src/main/java/org/richfaces/model/DeclarativeTreeDataModelImpl.java
Log:
Fixed incorrect isLeaf() condition in DeclarativeTreeDataModelImpl
Modified:
trunk/ui/iteration/ui/src/main/java/org/richfaces/model/DeclarativeTreeDataModelImpl.java
===================================================================
---
trunk/ui/iteration/ui/src/main/java/org/richfaces/model/DeclarativeTreeDataModelImpl.java 2010-12-10
16:59:11 UTC (rev 20505)
+++
trunk/ui/iteration/ui/src/main/java/org/richfaces/model/DeclarativeTreeDataModelImpl.java 2010-12-10
17:04:10 UTC (rev 20506)
@@ -67,7 +67,7 @@
return true;
}
- return !Iterables.contains(currentComponent.getChildren(),
Predicates.instanceOf(TreeModelAdaptor.class));
+ return !Iterables.any(currentComponent.getChildren(),
Predicates.instanceOf(TreeModelAdaptor.class));
}
public Iterator<TreeDataModelTuple> children() {