diff gwt-client/src/main/java/org/dive4elements/river/client/server/auth/plain/Authenticator.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 7bc35bbd8b27
children d6d5ca6d4af0 0a5239a1e46e
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/auth/plain/Authenticator.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/auth/plain/Authenticator.java	Thu Jan 18 20:12:01 2018 +0100
@@ -36,7 +36,7 @@
         Logger.getLogger(Authenticator.class);
 
     public static class Authentication
-    implements          org.dive4elements.river.client.server.auth.Authentication
+    implements org.dive4elements.river.client.server.auth.Authentication
     {
         protected String       user;
         protected String       password;
@@ -63,7 +63,9 @@
         @Override
         public User getUser() {
             return isSuccess()
-                ? new DefaultUser(user, password, null, false, roles, this.features.getFeatures(roles))
+                ? new DefaultUser(
+                    user, password, null, false, roles,
+                    this.features.getFeatures(roles))
                 : null;
         }
     } // class Authentication
@@ -98,7 +100,8 @@
         File file = credentialsFile();
         if (!file.canRead() || !file.isFile()) {
             log.error("cannot find user file '" + file + "'");
-            return new Authentication(null, null, new ArrayList<String>(0), features);
+            return new Authentication(
+                null, null, new ArrayList<String>(0), features);
         }
 
         BufferedReader reader =
@@ -128,7 +131,8 @@
                         }
 
                         log.debug("success");
-                        return new Authentication(username, password, roles, features);
+                        return new Authentication(
+                            username, password, roles, features);
                     }
                     // Stop: user found, wrong password
                     break;

http://dive4elements.wald.intevation.org