FELIX-4469 scrcommand help should not give NPE
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1590351 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/ScrShellCommand.java b/scr/src/main/java/org/apache/felix/scr/impl/ScrShellCommand.java
index 32ac2d8..a969328 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/ScrShellCommand.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/ScrShellCommand.java
@@ -113,7 +113,7 @@
private void help(PrintStream out, String command)
{
- if (command.equals(LIST_CMD))
+ if (LIST_CMD.equals( command ))
{
out.println("");
out.println("scr " + LIST_CMD + " [ <bundleId> ]");
@@ -122,7 +122,7 @@
+ "added, only the components of the selected bundles are listed.");
out.println("");
}
- else if (command.equals(INFO_CMD))
+ else if (INFO_CMD.equals( command ))
{
out.println("");
out.println("scr " + INFO_CMD + " <componentId>");
@@ -131,7 +131,7 @@
+ "component ID is given as command argument.");
out.println("");
}
- else if (command.equals(ENABLE_CMD))
+ else if (ENABLE_CMD.equals( command ))
{
out.println("");
out.println("scr " + ENABLE_CMD + " <componentId>");
@@ -139,7 +139,7 @@
out.println("This command enables the component whose component ID\n" + "is given as command argument.");
out.println("");
}
- else if (command.equals(DISABLE_CMD))
+ else if (DISABLE_CMD.equals( command ))
{
out.println("");
out.println("scr " + DISABLE_CMD + " <componentId>");
@@ -147,7 +147,7 @@
out.println("This command disables the component whose component ID\n" + "is given as command argument.");
out.println("");
}
- else if (command.equals(CONFIG_CMD))
+ else if (CONFIG_CMD.equals( command ))
{
out.println("");
out.println("scr " + CONFIG_CMD);