accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milleruntime <...@git.apache.org>
Subject [GitHub] accumulo pull request #154: ACCUMULO-4461: modified ClientOpts to prompt for...
Date Tue, 20 Sep 2016 15:42:50 GMT
Github user milleruntime commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/154#discussion_r79642827
  
    --- Diff: core/src/main/java/org/apache/accumulo/core/cli/ClientOpts.java ---
    @@ -92,6 +94,20 @@ public Password(String dfault) {
         public String toString() {
           return new String(value, UTF_8);
         }
    +
    +    /**
    +     * Prompts user for a password
    +     *
    +     * @return user entered Password object, null if no console exists
    +     */
    +    public static Password promptUser() throws IOException {
    +      if (System.console() == null) {
    +        return null;
    --- End diff --
    
    Fixed in 895591c


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message