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)