@@ -36,13 +36,6 @@ public class AppConfig {
3636 */
3737 public static final String DEFAULT_APP_NAME = "my-app" ;
3838
39- /**
40- * These are assumed as sensible defaults in a development environment, where teams often use admin/admin for the
41- * admin login. They are of course expected to change in a real environment.
42- */
43- public static final String DEFAULT_USERNAME = "admin" ;
44- public static final String DEFAULT_PASSWORD = "admin" ;
45-
4639 /**
4740 * This is set purely for development purposes so that an app can be configured without specifying a port. The
4841 * v1/rest-apis endpoint will select an open port if none is provided, but some work is then required to figure out
@@ -60,7 +53,15 @@ public class AppConfig {
6053 public final static String DEFAULT_GROUP = "Default" ;
6154
6255 private String name = DEFAULT_APP_NAME ;
63- private String host = DEFAULT_HOST ;
56+
57+ /**
58+ * These are assumed as sensible defaults in a development environment, where teams often use admin/admin for the
59+ * admin login. They are of course expected to change in a real environment.
60+ */
61+ public static final String DEFAULT_USERNAME = "admin" ;
62+ public static final String DEFAULT_PASSWORD = "admin" ;
63+
64+ private String host = DEFAULT_HOST ;
6465
6566 private boolean catchDeployExceptions = false ;
6667 private boolean catchUndeployExceptions = false ;
@@ -219,7 +220,7 @@ public AppConfig(String defaultModulePath) {
219220 }
220221
221222 public AppConfig (String defaultModulePath , String defaultSchemasPath ) {
222- modulePaths = new ArrayList <String >();
223+ modulePaths = new ArrayList <>();
223224 modulePaths .add (defaultModulePath );
224225 configDirs = new ArrayList <>();
225226 configDirs .add (new ConfigDir ());
0 commit comments