Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D12FE198 for ; Mon, 28 Jan 2013 14:24:45 +0000 (UTC) Received: (qmail 73725 invoked by uid 500); 28 Jan 2013 14:24:45 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 73552 invoked by uid 500); 28 Jan 2013 14:24:45 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 73540 invoked by uid 99); 28 Jan 2013 14:24:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 14:24:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 14:24:42 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A7E9523888D2; Mon, 28 Jan 2013 14:24:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1439421 - /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java Date: Mon, 28 Jan 2013 14:24:22 -0000 To: commits@commons.apache.org From: tn@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130128142422.A7E9523888D2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tn Date: Mon Jan 28 14:24:22 2013 New Revision: 1439421 URL: http://svn.apache.org/viewvc?rev=1439421&view=rev Log: Added javadoc for member fields, formatting, fix eclipse warning wrt raw types. Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java?rev=1439421&r1=1439420&r2=1439421&view=diff ============================================================================== --- commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java (original) +++ commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java Mon Jan 28 14:24:22 2013 @@ -31,7 +31,10 @@ import java.util.Properties; */ public class DefaultParser implements CommandLineParser { + /** The command-line instance. */ protected CommandLine cmd; + + /** The current options. */ protected Options options; /** @@ -94,7 +97,8 @@ public class DefaultParser implements Co * @throws ParseException if there are any problems encountered * while parsing the command line tokens. */ - public CommandLine parse(Options options, String[] arguments, Properties properties, boolean stopAtNonOption) throws ParseException + public CommandLine parse(Options options, String[] arguments, Properties properties, boolean stopAtNonOption) + throws ParseException { this.options = options; this.stopAtNonOption = stopAtNonOption; @@ -141,7 +145,7 @@ public class DefaultParser implements Co return; } - for (Enumeration e = properties.propertyNames(); e.hasMoreElements();) + for (Enumeration e = properties.propertyNames(); e.hasMoreElements();) { String option = e.nextElement().toString();