super(null);
setErrorLevel(ErrorLevel.INFORMATION);
- for (int i = 0; i < errorMessages.length; i++) {
- addErrorMessage(errorMessages[i]);
+ for (ErrorMessage errorMessage : errorMessages) {
+ addErrorMessage(errorMessage);
}
if (getCauses().size() == 0) {
// Add the resize button for the history
resize.addClickListener(this::resizeButtonClick);
- resize.setData(new Boolean(false));
+ resize.setData(false);
resize.setWidth("100%");
resize.setHeight("10px");
resize.setPrimaryStyleName("resize-button");
history.setHeight("85px");
}
- resize.setData(new Boolean(!minimize));
+ resize.setData(!minimize);
}
private void okButtonClick(ClickEvent event) {
MySubClass myInstance = new MySubClass();
java.lang.reflect.Field memberField;
- Object fieldValue = new Boolean(false);
+ Object fieldValue = false;
try {
memberField = myInstance.getClass().getField("field");
// Should get a String value. Without the third parameter (calling
MyClass myInstance = new MyClass();
java.lang.reflect.Field memberField;
- Object fieldValue = new Boolean(false);
+ Object fieldValue = false;
try {
memberField = myInstance.getClass().getField("field");
fieldValue = ReflectTools.getJavaFieldValue(myInstance,