geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [08/16] incubator-geode git commit: GEODE-1559: add javadocs to OptionJFormatter
Date Sat, 18 Jun 2016 21:05:54 GMT
GEODE-1559: add javadocs to OptionJFormatter


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/43a9918f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/43a9918f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/43a9918f

Branch: refs/heads/feature/GEODE-1565
Commit: 43a9918f571822d807feb68f14ca59dc87c89001
Parents: bcffff9
Author: Kirk Lund <klund@apache.org>
Authored: Fri Jun 17 11:34:25 2016 -0700
Committer: Kirk Lund <klund@apache.org>
Committed: Fri Jun 17 13:19:47 2016 -0700

----------------------------------------------------------------------
 .../management/internal/cli/util/OptionJFormatter.java   | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/43a9918f/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/util/OptionJFormatter.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/util/OptionJFormatter.java
b/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/util/OptionJFormatter.java
index 4534f19..0e3265a 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/util/OptionJFormatter.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/util/OptionJFormatter.java
@@ -16,6 +16,9 @@
  */
 package com.gemstone.gemfire.management.internal.cli.util;
 
+/**
+ * Inserts quotes around the values of any --J options.
+ */
 public class OptionJFormatter {
 
   private static final String J_OPTION = "--J=";
@@ -27,6 +30,9 @@ public class OptionJFormatter {
   private String command;
   private StringBuilder formatted;
 
+  /**
+   * Returns command with quotes inserted around the values of any --J options.
+   */
   public String formatCommand(String command){
     if (!containsJopt(command)) {
       return command;
@@ -96,7 +102,10 @@ public class OptionJFormatter {
     return formatted.toString();
   }
 
-  public boolean containsJopt(String cmd){
+  /**
+   * Returns true if command contains any --J options.
+   */
+  boolean containsJopt(String cmd){
     if (cmd.contains("--J")){
       return true;
     }


Mime
View raw message