GUACAMOLE-38: Avoid unnuecessary type-casting.

This commit is contained in:
Nick Couchman
2018-03-24 22:34:56 -04:00
parent c50d372517
commit 9ab50a239c
2 changed files with 3 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ public class QuickConnectUserContext implements UserContext {
* The Directory with access to all connections within the root group * The Directory with access to all connections within the root group
* associated with this UserContext. * associated with this UserContext.
*/ */
private final Directory<Connection> connectionDirectory; private final QuickConnectDirectory connectionDirectory;
/** /**
* The root connection group. * The root connection group.
@@ -157,7 +157,7 @@ public class QuickConnectUserContext implements UserContext {
} }
@Override @Override
public Directory<Connection> getConnectionDirectory() public QuickConnectDirectory getConnectionDirectory()
throws GuacamoleException { throws GuacamoleException {
return connectionDirectory; return connectionDirectory;
} }

View File

@@ -69,7 +69,7 @@ public class QuickConnectREST {
public QuickConnectREST(QuickConnectUserContext userContext) public QuickConnectREST(QuickConnectUserContext userContext)
throws GuacamoleException { throws GuacamoleException {
this.userContext = userContext; this.userContext = userContext;
this.directory = (QuickConnectDirectory)this.userContext.getConnectionDirectory(); this.directory = this.userContext.getConnectionDirectory();
} }
/** /**