mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-38: Avoid unnuecessary type-casting.
This commit is contained in:
@@ -80,7 +80,7 @@ public class QuickConnectUserContext implements UserContext {
|
||||
* The Directory with access to all connections within the root group
|
||||
* associated with this UserContext.
|
||||
*/
|
||||
private final Directory<Connection> connectionDirectory;
|
||||
private final QuickConnectDirectory connectionDirectory;
|
||||
|
||||
/**
|
||||
* The root connection group.
|
||||
@@ -157,7 +157,7 @@ public class QuickConnectUserContext implements UserContext {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Directory<Connection> getConnectionDirectory()
|
||||
public QuickConnectDirectory getConnectionDirectory()
|
||||
throws GuacamoleException {
|
||||
return connectionDirectory;
|
||||
}
|
||||
|
@@ -69,7 +69,7 @@ public class QuickConnectREST {
|
||||
public QuickConnectREST(QuickConnectUserContext userContext)
|
||||
throws GuacamoleException {
|
||||
this.userContext = userContext;
|
||||
this.directory = (QuickConnectDirectory)this.userContext.getConnectionDirectory();
|
||||
this.directory = this.userContext.getConnectionDirectory();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user