GUACAMOLE-38: Fix parameter name to sometihng more fitting to its function.

This commit is contained in:
Nick Couchman
2018-03-16 14:37:05 -04:00
parent 6c235565b0
commit 2113d1aa96

View File

@@ -86,7 +86,7 @@ public class QuickConnectDirectory extends SimpleConnectionDirectory {
* QuickConnection connection, after setting the identifier
* and parent object.
*
* @param object
* @param connection
* The QuickConnection object to add to the tree.
*
* @return
@@ -96,17 +96,17 @@ public class QuickConnectDirectory extends SimpleConnectionDirectory {
* If an error is encountered adding the object to the
* directory.
*/
public String put(QuickConnection object) throws GuacamoleException {
public String put(QuickConnection connection) throws GuacamoleException {
// Get the next connection ID.
String connectionId = getNextConnectionID().toString();
// Set up identifier and parent on object.
object.setIdentifier(connectionId);
object.setParentIdentifier(ROOT_IDENTIFIER);
connection.setIdentifier(connectionId);
connection.setParentIdentifier(ROOT_IDENTIFIER);
// Add connection to the directory
putConnection(object);
putConnection(connection);
// Add connection to the tree
this.rootGroup.addConnectionIdentifier(connectionId);