[skip ci] some linting
This commit is contained in:
parent
76336077a2
commit
a2793c19a4
1 changed files with 3 additions and 2 deletions
|
@ -40,8 +40,9 @@ public class MainView extends VerticalLayout {
|
||||||
|
|
||||||
Button electNow = new Button("Elect!", buttonClickEvent -> {
|
Button electNow = new Button("Elect!", buttonClickEvent -> {
|
||||||
try {
|
try {
|
||||||
ArrayList checkboxSelectedMembers = new ArrayList(checkboxGroup.getSelectedItems());
|
ArrayList<String> checkboxSelectedMembers = new ArrayList<>(checkboxGroup.getSelectedItems());
|
||||||
Notification moderatorNotification = new Notification()
|
new Notification();
|
||||||
|
Notification moderatorNotification = Notification
|
||||||
.show("Nächster Moderator: " + electMember(checkboxSelectedMembers));
|
.show("Nächster Moderator: " + electMember(checkboxSelectedMembers));
|
||||||
moderatorNotification.setPosition(Notification.Position.BOTTOM_CENTER);
|
moderatorNotification.setPosition(Notification.Position.BOTTOM_CENTER);
|
||||||
} catch(Exception exceptionEvent) {
|
} catch(Exception exceptionEvent) {
|
||||||
|
|
Loading…
Reference in a new issue