Refactor NotificationController

This commit is contained in:
pivovarit 2016-12-28 11:19:26 +01:00
parent babd9da492
commit 07364d0b79
1 changed files with 2 additions and 4 deletions

View File

@ -15,11 +15,9 @@ public class NotificationController {
private EventBus eventBus;
@GetMapping("/startNotification/{param}")
public void startNotification(@PathVariable("param") String param) {
public void startNotification(@PathVariable Integer param) {
int notificationSize = Integer.parseInt(param);
for (int i = 0; i < notificationSize; i++) {
for (int i = 0; i < param; i++) {
NotificationData data = new NotificationData();
data.setId(i);