Variable refactorings for consistency

This commit is contained in:
Keir Nellyer 2016-07-27 16:09:38 +01:00
parent f2435c3b43
commit 97d72e97e4
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -42,7 +42,7 @@ public class ReportCommandCallback implements CommandCallback
if (handler != null)
{
sendRawMessage(handler, reportNotification.getNotification());
sendRawMessage(handler, reportNotification.getMessage());
}
}
});