Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/562#discussion_r103490624
  
    --- Diff: 
camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/BrooklynCampPlatform.java
 ---
    @@ -65,7 +65,7 @@ public BrooklynCampPlatform(PlatformRootSummary root, 
ManagementContext manageme
     
         /** finds and returns the {@link CampPlatform} registered for the 
management context, or null if none */
         @Nullable public static CampPlatform findPlatform(ManagementContext 
mgmt) {
    -        return 
mgmt.getConfig().getConfig(BrooklynCampConstants.CAMP_PLATFORM);
    +        return (CampPlatform) 
mgmt.getScratchpad().get(BrooklynCampConstants.CAMP_PLATFORM);
    --- End diff --
    
    Don't need the cast, here and elsewhere.


---
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.
---

Reply via email to