commit | ca59b5a6ba13a606511db07e9c7c079e975130e0 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Wed Jun 17 01:18:41 2009 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Wed Jun 17 01:18:41 2009 +0000 |
tree | 4d5591493425bc02b928d8868bab1af7b632f887 | |
parent | 89cf3ca80e089afb4d0116d0c6684440809c7fb0 [diff] |
Simplified PackageAdmin.getBundle() implementation. (FELIX-1246) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@785464 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java index ee2b3ee..af14160 100644 --- a/framework/src/main/java/org/apache/felix/framework/Felix.java +++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -2957,14 +2957,7 @@ { IModule module = ((ModuleClassLoader) clazz.getClassLoader()).getModule(); - IModule[] modules = m_resolverState.getModules(); - for (int i = 0; i < modules.length; i++) - { - if (modules[i] == module) - { - return modules[i].getBundle(); - } - } + return module.getBundle(); } try { @@ -4616,4 +4609,4 @@ } } } -} \ No newline at end of file +}