accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Billie Rinaldi <bil...@apache.org>
Subject Re: SetIterCommand - why set input to new String(input)?
Date Tue, 11 Sep 2012 19:27:54 GMT
On Tue, Sep 11, 2012 at 11:54 AM, David Medinets
<david.medinets@gmail.com>wrote:

> Is there  some value in the line marked by question marks?
>
>   private static String setUpOptions(final ConsoleReader reader, final
> String className, final Map<String,String> options) ... {
>     ...
>           if (input == null) {
>             reader.printNewline();
>             throw new IOException("Input stream closed");
>           } else {
>             input = new String(input);  <--- ????
>           }
>   }
>

That looks like my fault.  I did it twice in the same method.  Can't
imagine why.

Billie

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message