File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
spring-webmvc/src/test/java/org/springframework/web/servlet/tags/form Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ public void withSingleValueBooleanChecked() throws Exception {
164
164
165
165
@ Test
166
166
public void withSingleValueBooleanObjectUnchecked () throws Exception {
167
- this .bean .setSomeBoolean (new Boolean ( false ) );
167
+ this .bean .setSomeBoolean (Boolean . FALSE );
168
168
this .tag .setPath ("someBoolean" );
169
169
int result = this .tag .doStartTag ();
170
170
assertEquals (Tag .SKIP_BODY , result );
@@ -692,7 +692,7 @@ protected TestBean createTestBean() {
692
692
this .bean .setDate (getDate ());
693
693
this .bean .setName ("Rob Harrop" );
694
694
this .bean .setJedi (true );
695
- this .bean .setSomeBoolean (new Boolean ( true ) );
695
+ this .bean .setSomeBoolean (Boolean . TRUE );
696
696
this .bean .setStringArray (new String [] {"bar" , "foo" });
697
697
this .bean .setSomeIntegerArray (new Integer [] {new Integer (2 ), new Integer (1 )});
698
698
this .bean .setOtherColours (colours );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -773,7 +773,7 @@ protected TestBean createTestBean() {
773
773
this .bean .setDate (getDate ());
774
774
this .bean .setName ("Rob Harrop" );
775
775
this .bean .setJedi (true );
776
- this .bean .setSomeBoolean (new Boolean ( true ) );
776
+ this .bean .setSomeBoolean (Boolean . TRUE );
777
777
this .bean .setStringArray (new String [] {"bar" , "foo" });
778
778
this .bean .setSomeIntegerArray (new Integer [] {new Integer (2 ), new Integer (1 )});
779
779
this .bean .setOtherColours (colours );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -620,7 +620,7 @@ protected TestBean createTestBean() {
620
620
this .bean .setDate (getDate ());
621
621
this .bean .setName ("Rob Harrop" );
622
622
this .bean .setJedi (true );
623
- this .bean .setSomeBoolean (new Boolean ( true ) );
623
+ this .bean .setSomeBoolean (Boolean . TRUE );
624
624
this .bean .setStringArray (new String [] {"bar" , "foo" });
625
625
this .bean .setSomeIntegerArray (new Integer [] {new Integer (2 ), new Integer (1 )});
626
626
this .bean .setOtherColours (colours );
You can’t perform that action at this time.
0 commit comments