commit | 422286af5a86c247a5a767dd3a4e99ad6816aa94 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Apr 26 20:16:23 2007 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Apr 26 20:16:23 2007 +0000 |
tree | 3e1d37f63c342430e0122040befe7fc98db324a5 | |
parent | f46cdefaf29cf152d0087f0450e6f82ed4ee5c5e [diff] |
Slight bug in my last commit to fix Bundle.findEntries()... git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@532847 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java b/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java index 46c6356..a8a251b 100644 --- a/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java +++ b/framework/src/main/java/org/apache/felix/framework/FindEntriesEnumeration.java
@@ -105,7 +105,7 @@ ? entryName.length() - 1 : entryName.length(); int startIdx = (entryName.charAt(entryName.length() - 1) == '/') - ? entryName.lastIndexOf('/', endIdx - 2) + 1 + ? entryName.lastIndexOf('/', endIdx - 1) + 1 : entryName.lastIndexOf('/', endIdx) + 1; String lastElement = entryName.substring(startIdx, endIdx);