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