Github user ahgittin commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/31#discussion_r14484584
--- Diff:
core/src/main/java/brooklyn/catalog/internal/CatalogLibrariesDo.java ---
@@ -0,0 +1,22 @@
+package brooklyn.catalog.internal;
+
+import java.util.List;
+
+import com.google.common.base.Preconditions;
+
+import brooklyn.catalog.CatalogItem;
+
+public class CatalogLibrariesDo implements
CatalogItem.CatalogItemLibraries {
+
+ private final CatalogLibrariesDto librariesDto;
+
+ public CatalogLibrariesDo(CatalogLibrariesDto librariesDto) {
+ this.librariesDto = Preconditions.checkNotNull(librariesDto,
"librariesDto");
--- End diff --
in fact libraries is often null due to the `CatalogItemAbstractDto`
constructor methods. i think we should remove the `@Nonnull` and allow null
simply to mean no special libraries defined.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---