You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ma...@apache.org on 2014/04/30 08:21:29 UTC
git commit: Format code
Repository: incubator-stratos
Updated Branches:
refs/heads/master c0805cc12 -> dee00db1e
Format code
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/dee00db1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/dee00db1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/dee00db1
Branch: refs/heads/master
Commit: dee00db1e5ff59127d720507f2a9eb2cfd83b2ea
Parents: c0805cc
Author: Manula Thantriwatte <ma...@apache.org>
Authored: Wed Apr 30 06:21:07 2014 +0000
Committer: Manula Thantriwatte <ma...@apache.org>
Committed: Wed Apr 30 06:21:07 2014 +0000
----------------------------------------------------------------------
.../apache/stratos/cli/commands/SubscribeCommand.java | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/dee00db1/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/SubscribeCommand.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/SubscribeCommand.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/SubscribeCommand.java
index c540936..c30749c 100644
--- a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/SubscribeCommand.java
+++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/SubscribeCommand.java
@@ -203,14 +203,11 @@ public class SubscribeCommand implements Command<StratosCommandContext> {
String optionValue = commandLine.getOptionValue(CliConstants.REMOVE_ON_TERMINATION_OPTION);
if (optionValue.equals("true")) {
removeOnTermination = true;
- }
- else if (optionValue.equals("false")) {
+ } else if (optionValue.equals("false")) {
removeOnTermination = false;
- }
- else {
+ } else {
if (logger.isTraceEnabled()) {
logger.trace("Invalid remove on termination option value");
-
}
System.out.println("Invalid remove on termination option value.");
context.getStratosApplication().printUsage(getName());
@@ -226,14 +223,11 @@ public class SubscribeCommand implements Command<StratosCommandContext> {
String optionValue = commandLine.getOptionValue(CliConstants.PERSISTANCE_VOLUME_OPTION);
if (optionValue.equals("true")) {
persistanceMapping = true;
- }
- else if (optionValue.equals("false")) {
+ } else if (optionValue.equals("false")) {
persistanceMapping = false;
- }
- else {
+ } else {
if (logger.isTraceEnabled()) {
logger.trace("Invalid persistance mapping option value");
-
}
System.out.println("Invalid persistance mapping option value.");
context.getStratosApplication().printUsage(getName());