commit | 754222aa01d69ff083f8293b92f31f85dc17a838 | [log] [tgz] |
---|---|---|
author | Karl Pauls <pauls@apache.org> | Sun Apr 13 19:03:02 2008 +0000 |
committer | Karl Pauls <pauls@apache.org> | Sun Apr 13 19:03:02 2008 +0000 |
tree | 11c1ad53fa457fbd3896db2777dd6b96965c40e1 | |
parent | 4e269138d482c82d31652ea9d4787e226c4523ab [diff] |
Cache the bundle id in the BundleImpl class to improve performance. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@647608 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/BundleImpl.java b/framework/src/main/java/org/apache/felix/framework/BundleImpl.java index 4b835b0..391d996 100644 --- a/framework/src/main/java/org/apache/felix/framework/BundleImpl.java +++ b/framework/src/main/java/org/apache/felix/framework/BundleImpl.java
@@ -27,6 +27,7 @@ class BundleImpl extends FelixBundle { + private final long m_id; private Felix m_felix = null; private BundleInfo m_info = null; @@ -34,6 +35,7 @@ { m_felix = felix; m_info = info; + m_id = info.getBundleId(); } /* package private */ BundleInfo getInfo() @@ -57,7 +59,7 @@ public long getBundleId() { - return m_info.getBundleId(); + return m_id; } public URL getEntry(String name)