summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/entity/proxy/AgentProxy.java
diff options
context:
space:
mode:
authorabranson <andrew.branson@cern.ch>2011-08-04 16:08:49 +0200
committerabranson <andrew.branson@cern.ch>2011-08-04 16:08:49 +0200
commit379ed8a0e133bee650e0acb24f6b743f657a50d0 (patch)
treebdcac37cabe3f2f3d40715519b830469dc9e63ad /source/com/c2kernel/entity/proxy/AgentProxy.java
parent0ec8481c10cd8277d84c7c1a785483a0a739e5a0 (diff)
Last bit of cleanup honest
New castor and dependent commons libs
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;