fix obvious bug in Notification setActor()

This method doesn't seem to be used anywhere, so it never mattered.

Eclipse pointed out "The assignment to variable actorId has no effect".

We should not ignore javac/Eclipse compiler warnings! => FINERACT-959
This commit is contained in:
Michael Vorburger
2020-05-10 16:19:09 +02:00
committed by Michael Vorburger ⛑️
parent d2d013b78f
commit 0cc18d7b8c
@@ -51,7 +51,7 @@ public class Notification extends AbstractPersistableCustom {
public Notification() {}
public Notification(String objectType, Long objectIdentifier, String action, Long actorId, boolean isSystemGenerated,
String notificationContent, String createdAt) {
String notificationContent, String createdAt) {
this.objectType = objectType;
this.objectIdentifier = objectIdentifier;
this.action = action;
@@ -89,7 +89,7 @@ public class Notification extends AbstractPersistableCustom {
return actorId;
}
public void setActor(Long actor) {
public void setActor(Long actorId) {
this.actorId = actorId;
}
@@ -108,4 +108,6 @@ public class Notification extends AbstractPersistableCustom {
public void setNotificationContent(String notificationContent) {
this.notificationContent = notificationContent;
}
}