mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17: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
|
* 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;
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user