GUAC-1512: Refer to defaults as defaults.

This commit is contained in:
Michael Jumper
2016-03-17 13:01:48 -07:00
parent d0c9d731c0
commit e3f24f2f79
2 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ public class MySQLEnvironment extends JDBCEnvironment {
* The default value for the maximum number of connections to be * The default value for the maximum number of connections to be
* allowed to the Guacamole server overall. * allowed to the Guacamole server overall.
*/ */
private final int ABSOLUTE_MAX_CONNECTIONS = 0; private final int DEFAULT_ABSOLUTE_MAX_CONNECTIONS = 0;
/** /**
* The default value for the default maximum number of connections to be * The default value for the default maximum number of connections to be
@@ -173,7 +173,7 @@ public class MySQLEnvironment extends JDBCEnvironment {
@Override @Override
public int getAbsoluteMaxConnections() throws GuacamoleException { public int getAbsoluteMaxConnections() throws GuacamoleException {
return getProperty(MySQLGuacamoleProperties.MYSQL_ABSOLUTE_MAX_CONNECTIONS, return getProperty(MySQLGuacamoleProperties.MYSQL_ABSOLUTE_MAX_CONNECTIONS,
ABSOLUTE_MAX_CONNECTIONS DEFAULT_ABSOLUTE_MAX_CONNECTIONS
); );
} }

View File

@@ -54,7 +54,7 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
* The default value for the maximum number of connections to be * The default value for the maximum number of connections to be
* allowed to the Guacamole server overall. * allowed to the Guacamole server overall.
*/ */
private final int ABSOLUTE_MAX_CONNECTIONS = 0; private final int DEFAULT_ABSOLUTE_MAX_CONNECTIONS = 0;
/** /**
* The default value for the default maximum number of connections to be * The default value for the default maximum number of connections to be
@@ -172,7 +172,7 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
@Override @Override
public int getAbsoluteMaxConnections() throws GuacamoleException { public int getAbsoluteMaxConnections() throws GuacamoleException {
return getProperty(PostgreSQLGuacamoleProperties.POSTGRESQL_ABSOLUTE_MAX_CONNECTIONS, return getProperty(PostgreSQLGuacamoleProperties.POSTGRESQL_ABSOLUTE_MAX_CONNECTIONS,
ABSOLUTE_MAX_CONNECTIONS DEFAULT_ABSOLUTE_MAX_CONNECTIONS
); );
} }