mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1123: Fixes to comments, method scope, and minor code tweaks.
This commit is contained in:
@@ -143,7 +143,8 @@ public class APIConnectionWrapper implements Connection {
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<? extends ConnectionRecord> getHistory() throws GuacamoleException {
|
||||
return Collections.<ConnectionRecord>emptyList();
|
||||
throw new GuacamoleUnsupportedException("APIConnectionWrapper does not "
|
||||
+ "support retrieving connection history.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -84,7 +84,7 @@ public abstract class ActivityRecordSetResource<InternalRecordType extends Activ
|
||||
* A new record object containing the same data as the given internal
|
||||
* record, but intended for use in interchange.
|
||||
*/
|
||||
public abstract ExternalRecordType toExternalRecord(InternalRecordType record);
|
||||
protected abstract ExternalRecordType toExternalRecord(InternalRecordType record);
|
||||
|
||||
/**
|
||||
* Retrieves the list of activity records stored within the underlying
|
||||
|
@@ -42,7 +42,7 @@ public class ConnectionHistoryResource extends ActivityRecordSetResource<Connect
|
||||
}
|
||||
|
||||
@Override
|
||||
public APIConnectionRecord toExternalRecord(ConnectionRecord record) {
|
||||
protected APIConnectionRecord toExternalRecord(ConnectionRecord record) {
|
||||
return new APIConnectionRecord(record);
|
||||
}
|
||||
|
||||
|
@@ -41,7 +41,7 @@ public class UserHistoryResource extends ActivityRecordSetResource<ActivityRecor
|
||||
}
|
||||
|
||||
@Override
|
||||
public APIActivityRecord toExternalRecord(ActivityRecord record) {
|
||||
protected APIActivityRecord toExternalRecord(ActivityRecord record) {
|
||||
return new APIActivityRecord(record);
|
||||
}
|
||||
|
||||
|
@@ -143,7 +143,7 @@ public class APIUserWrapper implements User {
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<? extends ActivityRecord> getHistory() throws GuacamoleException {
|
||||
return Collections.<ActivityRecord>emptyList();
|
||||
throw new GuacamoleUnsupportedException("APIUserWrapper does not provide login history.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user