summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/lookup/Path.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/lookup/Path.java
parent0ec8481c10cd8277d84c7c1a785483a0a739e5a0 (diff)
Last bit of cleanup honest
New castor and dependent commons libs
Diffstat (limited to 'source/com/c2kernel/lookup/Path.java')
-rw-r--r--source/com/c2kernel/lookup/Path.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/com/c2kernel/lookup/Path.java b/source/com/c2kernel/lookup/Path.java
index 4966d1e..16d4f07 100644
--- a/source/com/c2kernel/lookup/Path.java
+++ b/source/com/c2kernel/lookup/Path.java
@@ -259,7 +259,7 @@ public abstract class Path implements Serializable
return mSysKey;
}
- public Enumeration<?> getChildren() {
+ public Enumeration<? extends Path> getChildren() {
String filter = "objectclass=*";
LDAPSearchConstraints searchCons = new LDAPSearchConstraints();
searchCons.setBatchSize(10);
@@ -268,9 +268,9 @@ public abstract class Path implements Serializable
}
public Path find(String name) throws ObjectNotFoundException {
- Enumeration<?> e = Gateway.getLDAPLookup().search(this, name);
+ Enumeration<Path> e = Gateway.getLDAPLookup().search(this, name);
if (e.hasMoreElements()) {
- Path thisPath =(Path)e.nextElement();
+ Path thisPath = e.nextElement();
if (e.hasMoreElements())
throw new ObjectNotFoundException("More than one match for "+name, "");
return thisPath;