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 B48DF200D23 for ; Fri, 20 Oct 2017 00:02:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B32151609EE; Thu, 19 Oct 2017 22:02:00 +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 050241609D7 for ; Fri, 20 Oct 2017 00:01:59 +0200 (CEST) Received: (qmail 28068 invoked by uid 500); 19 Oct 2017 22:01:59 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 28057 invoked by uid 99); 19 Oct 2017 22:01:59 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2017 22:01:59 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id D4B5A81D1E; Thu, 19 Oct 2017 22:01:57 +0000 (UTC) Date: Thu, 19 Oct 2017 22:01:57 +0000 To: "commits@accumulo.apache.org" Subject: [accumulo] branch master updated: ACCUMULO-4703 Fix warnings for newer JCommander MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150845051778.9422.5157984224362381034@gitbox.apache.org> From: ctubbsii@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: accumulo X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 255aa8f4faa5382194b10e02b2e7b6bf28440e32 X-Git-Newrev: 98bc31819e6c654a63540709bd83d3b887fb2a3f X-Git-Rev: 98bc31819e6c654a63540709bd83d3b887fb2a3f X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Thu, 19 Oct 2017 22:02:00 -0000 This is an automated email from the ASF dual-hosted git repository. ctubbsii pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/accumulo.git The following commit(s) were added to refs/heads/master by this push: new 98bc318 ACCUMULO-4703 Fix warnings for newer JCommander 98bc318 is described below commit 98bc31819e6c654a63540709bd83d3b887fb2a3f Author: Christopher Tubbs AuthorDate: Thu Oct 19 17:44:27 2017 -0400 ACCUMULO-4703 Fix warnings for newer JCommander Remove use of deprecated JCommander constructors, which are new warnings after the previous ACCUMULO-4703 commits updating the JCommander version. --- .../java/org/apache/accumulo/shell/PasswordConverterTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shell/src/test/java/org/apache/accumulo/shell/PasswordConverterTest.java b/shell/src/test/java/org/apache/accumulo/shell/PasswordConverterTest.java index 75d7293..1db0f02 100644 --- a/shell/src/test/java/org/apache/accumulo/shell/PasswordConverterTest.java +++ b/shell/src/test/java/org/apache/accumulo/shell/PasswordConverterTest.java @@ -76,7 +76,7 @@ public class PasswordConverterTest { public void testPass() { String expected = String.valueOf(Math.random()); argv[1] = "pass:" + expected; - new JCommander(password, argv); + new JCommander(password).parse(argv); assertEquals(expected, password.password); } @@ -84,7 +84,7 @@ public class PasswordConverterTest { public void testEnv() { String name = System.getenv().keySet().iterator().next(); argv[1] = "env:" + name; - new JCommander(password, argv); + new JCommander(password).parse(argv); assertEquals(System.getenv(name), password.password); } @@ -94,20 +94,20 @@ public class PasswordConverterTest { Scanner scan = new Scanner(new File("pom.xml")); String expected = scan.nextLine(); scan.close(); - new JCommander(password, argv); + new JCommander(password).parse(argv); assertEquals(expected, password.password); } @Test(expected = ParameterException.class) public void testNoFile() throws FileNotFoundException { argv[1] = "file:doesnotexist"; - new JCommander(password, argv); + new JCommander(password).parse(argv); } @Test public void testStdin() { argv[1] = "stdin"; - new JCommander(password, argv); + new JCommander(password).parse(argv); assertEquals("stdin", password.password); } } -- To stop receiving notification emails like this one, please contact ['"commits@accumulo.apache.org" '].