summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/entity/proxy/AgentProxy.java
diff options
context:
space:
mode:
Diffstat (limited to 'source/com/c2kernel/entity/proxy/AgentProxy.java')
-rw-r--r--source/com/c2kernel/entity/proxy/AgentProxy.java4
1 files changed, 2 insertions, 2 deletions
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<Path> 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;