felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1671177 - /felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
Date Fri, 03 Apr 2015 22:07:18 GMT
Author: djencks
Date: Fri Apr  3 22:07:18 2015
New Revision: 1671177

URL: http://svn.apache.org/r1671177
Log:
FELIX-4843 fix for loop in ScrInfo impl so all services are shown

Modified:
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java?rev=1671177&r1=1671176&r2=1671177&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java (original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java Fri Apr  3 22:07:18
2015
@@ -330,10 +330,10 @@ public class ScrCommand implements ScrIn
             if ( services != null )
             {
                 out.print( "  Services: " );
-                for ( int i = 1; i < services.length; i++ )
+                for ( String service: services )
                 {
                     out.print( "          " );
-                    out.println( services[i] );
+                    out.println( service );
                 }
                 out.print( "  Service Scope: " );
                 out.println( component.scope );
@@ -426,21 +426,21 @@ public class ScrCommand implements ScrIn
             out.println( ref.name );
             out.print( "      Target: " );
             out.println( ref.target );
-          ServiceReferenceDTO[] serviceRefs = ref.boundServices;
-          if ( serviceRefs != null )
-          {
-              out.print( "      Bound to:" );
-              for ( ServiceReferenceDTO sr: serviceRefs )
-              {
-                  out.print( "        " );
-                  out.println( sr.id );
-                  propertyInfo(sr.properties, out, "        ");
-              }
-          }
-          else
-          {
-              out.println( "      (unbound)" );
-          }
+            ServiceReferenceDTO[] serviceRefs = ref.boundServices;
+            if ( serviceRefs != null )
+            {
+                out.print( "      Bound to:" );
+                for ( ServiceReferenceDTO sr: serviceRefs )
+                {
+                    out.print( "        " );
+                    out.println( sr.id );
+                    propertyInfo(sr.properties, out, "        ");
+                }
+            }
+            else
+            {
+                out.println( "      (unbound)" );
+            }
 
         }
         for ( UnsatisfiedReferenceDTO ref: cc.unsatisfiedReferences)
@@ -449,20 +449,20 @@ public class ScrCommand implements ScrIn
             out.println( ref.name );
             out.print( "      Target: " );
             out.println( ref.target );
-          ServiceReferenceDTO[] serviceRefs = ref.targetServices;
-          if ( serviceRefs != null )
-          {
-              out.print( "      Target services:" );
-              for ( ServiceReferenceDTO sr: serviceRefs )
-              {
-                  out.print( "        " );
-                  out.println( sr.id );
-              }
-          }
-          else
-          {
-              out.println( "      (unbound)" );
-          }
+            ServiceReferenceDTO[] serviceRefs = ref.targetServices;
+            if ( serviceRefs != null )
+            {
+                out.print( "      Target services:" );
+                for ( ServiceReferenceDTO sr: serviceRefs )
+                {
+                    out.print( "        " );
+                    out.println( sr.id );
+                }
+            }
+            else
+            {
+                out.println( "      (unbound)" );
+            }
 
         }
         propertyInfo( cc.properties, out, "    ");



Mime
View raw message