From 379ed8a0e133bee650e0acb24f6b743f657a50d0 Mon Sep 17 00:00:00 2001 From: abranson Date: Thu, 4 Aug 2011 16:08:49 +0200 Subject: Last bit of cleanup honest New castor and dependent commons libs --- source/com/c2kernel/entity/proxy/AgentProxy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/com/c2kernel/entity/proxy/AgentProxy.java') diff --git a/source/com/c2kernel/entity/proxy/AgentProxy.java b/source/com/c2kernel/entity/proxy/AgentProxy.java index f2e8283..72ed088 100644 --- a/source/com/c2kernel/entity/proxy/AgentProxy.java +++ b/source/com/c2kernel/entity/proxy/AgentProxy.java @@ -272,14 +272,14 @@ public class AgentProxy extends EntityProxy /** Let scripts resolve items */ public ItemProxy searchItem(String name) throws ObjectNotFoundException { - Enumeration results = Gateway.getLDAPLookup().search(new DomainPath(""),name); + Enumeration results = Gateway.getLDAPLookup().search(new DomainPath(""),name); Path returnPath = null; if (!results.hasMoreElements()) throw new ObjectNotFoundException(name, ""); while(results.hasMoreElements()) { - Path nextMatch = (Path)results.nextElement(); + Path nextMatch = results.nextElement(); if (returnPath != null && nextMatch.getSysKey() != -1 && returnPath.getSysKey() != nextMatch.getSysKey()) throw new ObjectNotFoundException("Too many items with that name"); returnPath = nextMatch; -- cgit v1.2.3