From 60ff3d6c3428b2e353ecc0df90296cecc3e840e0 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Fri, 22 Sep 2017 12:23:12 +0200 Subject: Format curly brackets correctly for checkstyle (#10066) --- .../src/main/java/com/vaadin/v7/ui/Table.java | 27 ++++++++++------------ 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java') diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java index ee38b2bcb3..dac43ba923 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java @@ -2928,13 +2928,12 @@ public class Table extends AbstractSelect implements Action.Container, // TODO could be optimized. variables = new HashMap(variables); variables.remove("selected"); - } - - /* - * The AbstractSelect cannot handle the multiselection properly, instead - * we handle it ourself - */ - else if (isSelectable() && isMultiSelect() + } else if ( + /* + * The AbstractSelect cannot handle the multiselection properly, instead + * we handle it ourself + */ + isSelectable() && isMultiSelect() && variables.containsKey("selected") && multiSelectMode == MultiSelectMode.DEFAULT) { handleSelectedItems(variables); @@ -3128,10 +3127,9 @@ public class Table extends AbstractSelect implements Action.Container, fireEvent(new ItemClickEvent(this, item, itemId, propertyId, evt)); } - } - - // Header click event - else if (variables.containsKey("headerClickEvent")) { + } else if ( + // Header click event + variables.containsKey("headerClickEvent")) { MouseEventDetails details = MouseEventDetails .deSerialize((String) variables.get("headerClickEvent")); @@ -3142,10 +3140,9 @@ public class Table extends AbstractSelect implements Action.Container, propertyId = columnIdMap.get(cid.toString()); } fireEvent(new HeaderClickEvent(this, propertyId, details)); - } - - // Footer click event - else if (variables.containsKey("footerClickEvent")) { + } else if ( + // Footer click event + variables.containsKey("footerClickEvent")) { MouseEventDetails details = MouseEventDetails .deSerialize((String) variables.get("footerClickEvent")); -- cgit v1.2.3