felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r949192 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/FelixResolverState.java
Date Fri, 28 May 2010 14:48:01 GMT
Author: rickhall
Date: Fri May 28 14:48:01 2010
New Revision: 949192

URL: http://svn.apache.org/viewvc?rev=949192&view=rev
Log:
Minor code format cleanup.

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/FelixResolverState.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/FelixResolverState.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/FelixResolverState.java?rev=949192&r1=949191&r2=949192&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/FelixResolverState.java
(original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/FelixResolverState.java
Fri May 28 14:48:01 2010
@@ -69,15 +69,15 @@ public class FelixResolverState implemen
 
         List<String> indices = new ArrayList<String>();
         indices.add(Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE);
-        m_capSets.put( Capability.MODULE_NAMESPACE,  new CapabilitySet(indices) );
+        m_capSets.put(Capability.MODULE_NAMESPACE, new CapabilitySet(indices));
 
         indices = new ArrayList<String>();
         indices.add(Capability.PACKAGE_ATTR);
-        m_capSets.put( Capability.PACKAGE_NAMESPACE,  new CapabilitySet(indices) );
+        m_capSets.put(Capability.PACKAGE_NAMESPACE, new CapabilitySet(indices));
 
         indices = new ArrayList<String>();
         indices.add(Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE);
-        m_capSets.put( Capability.HOST_NAMESPACE,  new CapabilitySet(indices) );
+        m_capSets.put(Capability.HOST_NAMESPACE,  new CapabilitySet(indices));
     }
 
     public synchronized void addModule(Module module)
@@ -377,7 +377,7 @@ public class FelixResolverState implemen
         {
             for (Capability cap : caps)
             {
-                CapabilitySet capSet = m_capSets.get( cap.getNamespace() );
+                CapabilitySet capSet = m_capSets.get(cap.getNamespace());
                 if (capSet == null)
                 {
                     capSet = new CapabilitySet(null);
@@ -394,7 +394,7 @@ public class FelixResolverState implemen
         {
             for (Capability cap : caps)
             {
-                CapabilitySet capSet = m_capSets.get( cap.getNamespace() );
+                CapabilitySet capSet = m_capSets.get(cap.getNamespace());
                 if (capSet != null)
                 {
                     capSet.removeCapability(cap);
@@ -429,7 +429,8 @@ public class FelixResolverState implemen
             }
         }
 
-        Set<Capability> hostCaps = m_capSets.get(Capability.HOST_NAMESPACE).match(hostReq.getFilter(),
true);
+        Set<Capability> hostCaps =
+            m_capSets.get(Capability.HOST_NAMESPACE).match(hostReq.getFilter(), true);
 
         for (Iterator<Capability> it = hostCaps.iterator(); it.hasNext(); )
         {
@@ -555,7 +556,8 @@ public class FelixResolverState implemen
         SecurityManager sm = System.getSecurityManager();
         if (sm != null)
         {
-            if (!((BundleProtectionDomain) host.getSecurityContext()).impliesDirect(new BundlePermission(host.getSymbolicName(),
BundlePermission.HOST)))
+            if (!((BundleProtectionDomain) host.getSecurityContext()).impliesDirect(
+                new BundlePermission(host.getSymbolicName(), BundlePermission.HOST)))
             {
                 return fragmentList;
             }



Mime
View raw message