Author: rickhall Date: Tue Sep 20 16:43:05 2011 New Revision: 1173237 URL: http://svn.apache.org/viewvc?rev=1173237&view=rev Log: Improving whitespace. (FELIX-3050)
Modified: felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Inspect.java Modified: felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Inspect.java URL: http://svn.apache.org/viewvc/felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Inspect.java?rev=1173237&r1=1173236&r2=1173237&view=diff ============================================================================== --- felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Inspect.java (original) +++ felix/trunk/gogo/command/src/main/java/org/apache/felix/gogo/command/Inspect.java Tue Sep 20 16:43:05 2011 @@ -96,14 +96,15 @@ public class Inspect boolean separatorNeeded = false; for (Bundle b : bundles) { + if (separatorNeeded) + { + System.out.println(""); + } + // Print out any matching generic capabilities. BundleWiring wiring = b.adapt(BundleWiring.class); if (wiring != null) { - if (separatorNeeded) - { - System.out.println(""); - } String title = b + " provides:"; System.out.println(title); System.out.println(Util.getUnderlineString(title.length())); @@ -124,14 +125,14 @@ public class Inspect { System.out.println(Util.unparseSubstring(namespace) + " " + EMPTY_MESSAGE); } - separatorNeeded = true; } else { System.out.println("Bundle " + b.getBundleId() - + " is apparently not resolved."); + + " is not resolved."); } + separatorNeeded = true; } } @@ -158,6 +159,7 @@ public class Inspect msg = cap.getNamespace() + "; " + keyAttr + + " " + getVersionFromCapability(cap); } else @@ -176,6 +178,7 @@ public class Inspect System.out.println(cap.getNamespace() + "; " + cap.getAttributes().get(cap.getNamespace()) + + " " + getVersionFromCapability(cap) + " " + UNUSED_MESSAGE); @@ -268,14 +271,15 @@ public class Inspect boolean separatorNeeded = false; for (Bundle b : bundles) { + if (separatorNeeded) + { + System.out.println(""); + } + // Print out any matching generic requirements. BundleWiring wiring = b.adapt(BundleWiring.class); if (wiring != null) { - if (separatorNeeded) - { - System.out.println(""); - } String title = b + " requires:"; System.out.println(title); System.out.println(Util.getUnderlineString(title.length())); @@ -294,14 +298,15 @@ public class Inspect { System.out.println(Util.unparseSubstring(namespace) + " " + EMPTY_MESSAGE); } - separatorNeeded = true; } else { System.out.println("Bundle " + b.getBundleId() - + " is apparently not resolved."); + + " is not resolved."); } + + separatorNeeded = true; } } @@ -336,6 +341,7 @@ public class Inspect msg = wire.getCapability().getNamespace() + "; " + keyAttr + + " " + getVersionFromCapability(wire.getCapability()); } else