From: <cl...@hy...> - 2008-04-29 00:45:04
|
Author: clee Date: 2008-04-28 17:45:00 -0700 (Mon, 28 Apr 2008) New Revision: 9243 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=9243 Modified: trunk/src/org/hyperic/hq/bizapp/server/trigger/conditional/CustomPropertyTrigger.java Log: Simpler to just let AppdefEntityID to parse the values Modified: trunk/src/org/hyperic/hq/bizapp/server/trigger/conditional/CustomPropertyTrigger.java =================================================================== --- trunk/src/org/hyperic/hq/bizapp/server/trigger/conditional/CustomPropertyTrigger.java 2008-04-29 00:37:21 UTC (rev 9242) +++ trunk/src/org/hyperic/hq/bizapp/server/trigger/conditional/CustomPropertyTrigger.java 2008-04-29 00:45:00 UTC (rev 9243) @@ -6,7 +6,7 @@ * normal use of the program, and does *not* fall under the heading of * "derived work". * - * Copyright (C) [2004, 2005, 2006], Hyperic, Inc. + * Copyright (C) [2004-2008], Hyperic, Inc. * This file is part of HQ. * * HQ is free software; you can redistribute it and/or modify @@ -136,8 +136,7 @@ } try { - id = new AppdefEntityID(Integer.parseInt(sType), - Integer.parseInt(sID)); + id = new AppdefEntityID(sType + ":" + sID); } catch(NumberFormatException exc){ throw new InvalidTriggerDataException( "Instance type: " + sType + " or id: " + sID + |