mirror of
https://github.com/apache/maven.git
synced 2025-02-28 21:59:13 +00:00
Leave a space between colon and Console read password to improve
readability.
This commit is contained in:
parent
43d67de045
commit
d55dca85a1
@ -504,7 +504,7 @@ private void encryption( CliRequest cliRequest )
|
||||
Console cons;
|
||||
char[] password;
|
||||
if ( ( cons = System.console() ) != null
|
||||
&& ( password = cons.readPassword( "Master password:") ) != null )
|
||||
&& ( password = cons.readPassword( "Master password: " ) ) != null )
|
||||
{
|
||||
// Cipher uses Strings
|
||||
passwd = String.copyValueOf( password );
|
||||
@ -529,7 +529,7 @@ else if ( cliRequest.commandLine.hasOption( CLIManager.ENCRYPT_PASSWORD ) )
|
||||
Console cons;
|
||||
char[] password;
|
||||
if ( ( cons = System.console() ) != null
|
||||
&& ( password = cons.readPassword( "Password:" ) ) != null )
|
||||
&& ( password = cons.readPassword( "Password: " ) ) != null )
|
||||
{
|
||||
// Cipher uses Strings
|
||||
passwd = String.copyValueOf( password );
|
||||
|
Loading…
x
Reference in New Issue
Block a user