GUAC-1512: Refer to defaults as defaults.
This commit is contained in:
1 parent
d0c9d731c0
commit
e3f24f2f79
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -55,7 +55,7 @@ public class MySQLEnvironment extends JDBCEnvironment {
|
||||
* The default value for the maximum number of connections to be
|
||||
* 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
|
||||
@@ -173,7 +173,7 @@ public class MySQLEnvironment extends JDBCEnvironment {
|
||||
@Override
|
||||
public int getAbsoluteMaxConnections() throws GuacamoleException {
|
||||
return getProperty(MySQLGuacamoleProperties.MYSQL_ABSOLUTE_MAX_CONNECTIONS,
|
||||
ABSOLUTE_MAX_CONNECTIONS
|
||||
DEFAULT_ABSOLUTE_MAX_CONNECTIONS
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -54,7 +54,7 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
|
||||
* The default value for the maximum number of connections to be
|
||||
* 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
|
||||
@@ -172,7 +172,7 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
|
||||
@Override
|
||||
public int getAbsoluteMaxConnections() throws GuacamoleException {
|
||||
return getProperty(PostgreSQLGuacamoleProperties.POSTGRESQL_ABSOLUTE_MAX_CONNECTIONS,
|
||||
ABSOLUTE_MAX_CONNECTIONS
|
||||
DEFAULT_ABSOLUTE_MAX_CONNECTIONS
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user