You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/09/27 10:07:31 UTC
svn commit: r699600 -
/geronimo/gshell/trunk/gshell-commands/gshell-remote/src/main/java/org/apache/geronimo/gshell/commands/remote/RshAction.java
Author: jdillon
Date: Sat Sep 27 01:07:31 2008
New Revision: 699600
URL: http://svn.apache.org/viewvc?rev=699600&view=rev
Log:
Move asserts
Modified:
geronimo/gshell/trunk/gshell-commands/gshell-remote/src/main/java/org/apache/geronimo/gshell/commands/remote/RshAction.java
Modified: geronimo/gshell/trunk/gshell-commands/gshell-remote/src/main/java/org/apache/geronimo/gshell/commands/remote/RshAction.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-remote/src/main/java/org/apache/geronimo/gshell/commands/remote/RshAction.java?rev=699600&r1=699599&r2=699600&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-remote/src/main/java/org/apache/geronimo/gshell/commands/remote/RshAction.java (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-remote/src/main/java/org/apache/geronimo/gshell/commands/remote/RshAction.java Sat Sep 27 01:07:31 2008
@@ -116,16 +116,16 @@
if (username == null) {
text = messages.getMessage("prompt.username");
username = prompter.readLine(text + ": ", new UsernamePasswordValidator(text));
+ assert username != null;
+ assert username.length() != 0;
}
- assert username != null;
- assert username.length() != 0;
if (password == null) {
text = messages.getMessage("prompt.password");
password = prompter.readLine(text + ": ", new UsernamePasswordValidator(text));
+ assert password != null;
+ assert password.length() != 0;
}
- assert password != null;
- assert password.length() != 0;
}
io.info(messages.format("info.connecting", remote));