From 4a26ef8c4a39acc6a580e6e6afed49c3ce1e2c5b Mon Sep 17 00:00:00 2001 From: DieGurke <55625494+DieGurke@users.noreply.github.com> Date: Thu, 26 Mar 2020 15:49:08 +0100 Subject: [PATCH] Revised --- src/main/java/envoy/data/Group.java | 8 +------- src/main/java/envoy/event/GroupResizeEvent.java | 10 ++-------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/main/java/envoy/data/Group.java b/src/main/java/envoy/data/Group.java index abc51d0..077ff40 100644 --- a/src/main/java/envoy/data/Group.java +++ b/src/main/java/envoy/data/Group.java @@ -15,7 +15,7 @@ import java.util.StringJoiner; public class Group extends Contact { // TODO add admins - private List memberIDs; + private final List memberIDs; private static final long serialVersionUID = 0L; @@ -47,12 +47,6 @@ public class Group extends Contact { */ public List getMemberIDs() { return memberIDs; } - /** - * @param memberIDs the member IDs to set - * @since Envoy Common v0.1-beta - */ - public void setMemberIDs(List memberIDs) { this.memberIDs = memberIDs; } - /** * {@inheritDoc} */ diff --git a/src/main/java/envoy/event/GroupResizeEvent.java b/src/main/java/envoy/event/GroupResizeEvent.java index be5ac33..110ea9b 100644 --- a/src/main/java/envoy/event/GroupResizeEvent.java +++ b/src/main/java/envoy/event/GroupResizeEvent.java @@ -20,7 +20,7 @@ import envoy.data.User; public class GroupResizeEvent extends Event { private final long groupID; - private Operation operation; + private final Operation operation; private static final long serialVersionUID = 0L; @@ -80,13 +80,7 @@ public class GroupResizeEvent extends Event { * @return the operationType * @since Envoy Common v0.1-beta */ - public Operation getOperationType() { return operation; } - - /** - * @param operation the operationType to set - * @since Envoy Common v0.1-beta - */ - public void setOperationType(Operation operation) { this.operation = operation; } + public Operation getOperation() { return operation; } /** * {@inheritDoc}