GUACAMOLE-1123: Fixes to comments, method scope, and minor code tweaks.

This commit is contained in:
Virtually Nick committed 2020-10-30 12:26:29 -04:00
1 parent 3d761ea794
commit 0430d5510a
11 files changed
+51 -20

No files matched your search

@@ -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