From: <cl...@hy...> - 2007-10-18 19:11:09
|
Author: clee Date: 2007-10-18 12:11:02 -0700 (Thu, 18 Oct 2007) New Revision: 6318 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=6318 Modified: trunk/src/org/hyperic/hq/appdef/shared/AppdefResourceValue.java Log: Should not be casting AppdefGroupValue to ServiceClusterValue Modified: trunk/src/org/hyperic/hq/appdef/shared/AppdefResourceValue.java =================================================================== --- trunk/src/org/hyperic/hq/appdef/shared/AppdefResourceValue.java 2007-10-18 18:16:49 UTC (rev 6317) +++ trunk/src/org/hyperic/hq/appdef/shared/AppdefResourceValue.java 2007-10-18 19:11:02 UTC (rev 6318) @@ -123,8 +123,7 @@ return AppdefEntityID.newAppID(getId().intValue()); } else if (this instanceof AppdefGroupValue){ - return AppdefEntityID.newGroupID( - ((ServiceClusterValue)this).getGroupId().intValue()); + return AppdefEntityID.newGroupID(getId().intValue()); } // should never happen. // TODO decide what exception to throw here |