File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
spring-core/src/main/java/org/springframework/util
spring-test/src/main/java/org/springframework/test/web/servlet/result Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,11 @@ public Collection<V> values() {
139
139
Collection <V > values = this .values ;
140
140
if (values == null ) {
141
141
Collection <List <V >> targetValues = this .targetMap .values ();
142
- values = new AbstractCollection <V >() {
142
+ values = new AbstractCollection <>() {
143
143
@ Override
144
144
public Iterator <V > iterator () {
145
145
Iterator <List <V >> targetIterator = targetValues .iterator ();
146
- return new Iterator <V >() {
146
+ return new Iterator <>() {
147
147
@ Override
148
148
public boolean hasNext () {
149
149
return targetIterator .hasNext ();
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ protected void printResolvedException(@Nullable Exception resolvedException) thr
207
207
protected void printModelAndView (@ Nullable ModelAndView mav ) throws Exception {
208
208
this .printer .printValue ("View name" , (mav != null ) ? mav .getViewName () : null );
209
209
this .printer .printValue ("View" , (mav != null ) ? mav .getView () : null );
210
- if (mav == null || mav .getModel ().size () == 0 ) {
210
+ if (mav == null || mav .getModel ().isEmpty () ) {
211
211
this .printer .printValue ("Model" , null );
212
212
}
213
213
else {
You can’t perform that action at this time.
0 commit comments