Variable refactorings for consistency
This commit is contained in:
parent
f2435c3b43
commit
97d72e97e4
@ -12,14 +12,14 @@ public class HandlerNotification extends ServerCommand
|
||||
{
|
||||
private final long _reportId;
|
||||
private final int _handlerId;
|
||||
private final String _notification; // in json format
|
||||
private final String _message; // in json format
|
||||
|
||||
public HandlerNotification(Report report, JsonMessage notification)
|
||||
public HandlerNotification(Report report, JsonMessage jsonMessage)
|
||||
{
|
||||
super();
|
||||
_reportId = report.getId().orElseThrow(() -> new IllegalStateException("Report has no id set."));
|
||||
_handlerId = report.getHandlerId().orElseThrow(() -> new IllegalStateException("Report has no handler."));
|
||||
_notification = notification.toString();
|
||||
_message = jsonMessage.toString();
|
||||
|
||||
setTargetServers(getServersInvolved(report));
|
||||
}
|
||||
@ -39,8 +39,8 @@ public class HandlerNotification extends ServerCommand
|
||||
return _handlerId;
|
||||
}
|
||||
|
||||
public String getNotification()
|
||||
public String getMessage()
|
||||
{
|
||||
return _notification;
|
||||
return _message;
|
||||
}
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class ReportCommandCallback implements CommandCallback
|
||||
|
||||
if (handler != null)
|
||||
{
|
||||
sendRawMessage(handler, reportNotification.getNotification());
|
||||
sendRawMessage(handler, reportNotification.getMessage());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user