BootstrapContext context = new BootstrapContext(response,
new BootstrapFragmentResponse(this, request, session,
- uiClass, new ArrayList<Node>(), provider));
+ uiClass, new ArrayList<>(), provider));
setupMainDiv(context);
public static List<InvalidLayout> validateLayouts(UI ui) {
List<InvalidLayout> invalidRelativeSizes = ComponentSizeValidator
.validateComponentRelativeSizes(ui.getContent(),
- new ArrayList<ComponentSizeValidator.InvalidLayout>(),
+ new ArrayList<>(),
null);
// Also check any existing subwindows
for (Element e : design.children()) {
if (e.tagName().equalsIgnoreCase("row")) {
rowElements.add(e);
- rows.add(new HashMap<Integer, Component>());
+ rows.add(new HashMap<>());
}
}
+ colspan; ++colIndex) {
if (rowIndex == rows.size()) {
// Rowspan with not enough rows. Fix by adding rows.
- rows.add(new HashMap<Integer, Component>());
+ rows.add(new HashMap<>());
}
rows.get(rowIndex).put(colIndex + skippedColumns,
child);
T item = grid.getDataCommunicator().getKeyMapper().get(rowKey);
Column column = grid.getColumn(columnId);
- fireEvent(new RendererClickEvent<T>(grid, item, column,
+ fireEvent(new RendererClickEvent<>(grid, item, column,
mouseDetails));
}
});
System.out.println("No comparator found for " + c.getName()
+ ". Using introspector.");
}
- return new IntrospectorEqualsAsserter<T>(c);
+ return new IntrospectorEqualsAsserter<>(c);
}
return comp;
}