> @@ -44,7 +48,20 @@
>
> @Override
> public Iterable<Catalog> apply(final Org org) {
> - return transform(org.getCatalogs().values(), new
> Function<ReferenceType, Catalog>() {
> +
> + Collection<ReferenceType> filtered = Collections2.filter(
> + org.getCatalogs().values(), new
> Predicate<ReferenceType>() {
> + @Override
> + public boolean apply(ReferenceType type) {
> + if(type == null){
> + return false;
> + }
> + return !ImmutableSet.of("add",
> "remove").contains(type.getRelationship());
Move this set to a variable outside the filter, to avoid creating it N times?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/418/files#r14185366