From a2793c19a447b95d05d1a22432d881500000a451 Mon Sep 17 00:00:00 2001 From: Mirco Date: Tue, 9 Jul 2024 09:07:03 +0200 Subject: [PATCH] [skip ci] some linting --- src/main/java/com/ModeratorElection/MainView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ModeratorElection/MainView.java b/src/main/java/com/ModeratorElection/MainView.java index 40bd714..d7f7e6b 100644 --- a/src/main/java/com/ModeratorElection/MainView.java +++ b/src/main/java/com/ModeratorElection/MainView.java @@ -40,8 +40,9 @@ public class MainView extends VerticalLayout { Button electNow = new Button("Elect!", buttonClickEvent -> { try { - ArrayList checkboxSelectedMembers = new ArrayList(checkboxGroup.getSelectedItems()); - Notification moderatorNotification = new Notification() + ArrayList checkboxSelectedMembers = new ArrayList<>(checkboxGroup.getSelectedItems()); + new Notification(); + Notification moderatorNotification = Notification .show("Nächster Moderator: " + electMember(checkboxSelectedMembers)); moderatorNotification.setPosition(Notification.Position.BOTTOM_CENTER); } catch(Exception exceptionEvent) {