Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3D639200B14 for ; Sat, 18 Jun 2016 23:05:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3C206160A64; Sat, 18 Jun 2016 21:05:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8BB98160A63 for ; Sat, 18 Jun 2016 23:05:53 +0200 (CEST) Received: (qmail 62950 invoked by uid 500); 18 Jun 2016 21:05:52 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 62933 invoked by uid 99); 18 Jun 2016 21:05:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2016 21:05:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 33D021804C2 for ; Sat, 18 Jun 2016 21:05:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id umTy6N_N3ye6 for ; Sat, 18 Jun 2016 21:05:50 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 5505B5FB4A for ; Sat, 18 Jun 2016 21:05:49 +0000 (UTC) Received: (qmail 62738 invoked by uid 99); 18 Jun 2016 21:05:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2016 21:05:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 14D91EC226; Sat, 18 Jun 2016 21:05:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: klund@apache.org To: commits@geode.incubator.apache.org Date: Sat, 18 Jun 2016 21:05:54 -0000 Message-Id: <89c46c1aca394d65885d49bd60c9c788@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [08/16] incubator-geode git commit: GEODE-1559: add javadocs to OptionJFormatter archived-at: Sat, 18 Jun 2016 21:05:54 -0000 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 Authored: Fri Jun 17 11:34:25 2016 -0700 Committer: Kirk Lund 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; }