Skip to content
Permalink
Browse files
revert generics change as it causes inconsistent failures in differen…
…t JVM's
  • Loading branch information
ahgittin committed Jan 22, 2016
1 parent 624cf2a commit 03725f4cc582ad5870c34c4437fcd1f4e6f1926c
Showing 1 changed file with 5 additions and 1 deletion.
@@ -69,7 +69,11 @@ public static <T extends Entity> CatalogEntitySummary catalogEntitySummary(Brook

EntitySpec<?> spec = null;
try {
spec = (EntitySpec<?>) b.getCatalog().createSpec(item);
@SuppressWarnings({ "unchecked", "rawtypes" })
// the raw type isn't needed according to eclipse IDE, but jenkins maven fails without it;
// must be a java version or compiler thing. don't remove even though it looks okay without it!
EntitySpec<?> specRaw = (EntitySpec<?>) b.getCatalog().createSpec((CatalogItem) item);
spec = specRaw;
EntityDynamicType typeMap = BrooklynTypes.getDefinedEntityType(spec.getType());
EntityType type = typeMap.getSnapshot();

0 comments on commit 03725f4

Please sign in to comment.