Merge pull request #1281 from marschall:SPR-15076
* pr/1281: Remove use of Boolean constructors
This commit is contained in:
@@ -164,7 +164,7 @@ public class CheckboxTagTests extends AbstractFormTagTests {
|
||||
|
||||
@Test
|
||||
public void withSingleValueBooleanObjectUnchecked() throws Exception {
|
||||
this.bean.setSomeBoolean(new Boolean(false));
|
||||
this.bean.setSomeBoolean(Boolean.FALSE);
|
||||
this.tag.setPath("someBoolean");
|
||||
int result = this.tag.doStartTag();
|
||||
assertEquals(Tag.SKIP_BODY, result);
|
||||
@@ -692,7 +692,7 @@ public class CheckboxTagTests extends AbstractFormTagTests {
|
||||
this.bean.setDate(getDate());
|
||||
this.bean.setName("Rob Harrop");
|
||||
this.bean.setJedi(true);
|
||||
this.bean.setSomeBoolean(new Boolean(true));
|
||||
this.bean.setSomeBoolean(Boolean.TRUE);
|
||||
this.bean.setStringArray(new String[] {"bar", "foo"});
|
||||
this.bean.setSomeIntegerArray(new Integer[] {new Integer(2), new Integer(1)});
|
||||
this.bean.setOtherColours(colours);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -773,7 +773,7 @@ public class CheckboxesTagTests extends AbstractFormTagTests {
|
||||
this.bean.setDate(getDate());
|
||||
this.bean.setName("Rob Harrop");
|
||||
this.bean.setJedi(true);
|
||||
this.bean.setSomeBoolean(new Boolean(true));
|
||||
this.bean.setSomeBoolean(Boolean.TRUE);
|
||||
this.bean.setStringArray(new String[] {"bar", "foo"});
|
||||
this.bean.setSomeIntegerArray(new Integer[] {new Integer(2), new Integer(1)});
|
||||
this.bean.setOtherColours(colours);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -620,7 +620,7 @@ public class RadioButtonsTagTests extends AbstractFormTagTests {
|
||||
this.bean.setDate(getDate());
|
||||
this.bean.setName("Rob Harrop");
|
||||
this.bean.setJedi(true);
|
||||
this.bean.setSomeBoolean(new Boolean(true));
|
||||
this.bean.setSomeBoolean(Boolean.TRUE);
|
||||
this.bean.setStringArray(new String[] {"bar", "foo"});
|
||||
this.bean.setSomeIntegerArray(new Integer[] {new Integer(2), new Integer(1)});
|
||||
this.bean.setOtherColours(colours);
|
||||
|
||||
Reference in New Issue
Block a user