geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r699600 - /geronimo/gshell/trunk/gshell-commands/gshell-remote/src/main/java/org/apache/geronimo/gshell/commands/remote/RshAction.java
Date Sat, 27 Sep 2008 08:07:31 GMT
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));



Mime
View raw message