File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
spring-webflux/src/main/java/org/springframework/web/reactive/result/view Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,7 @@ public AbstractView(ReactiveAdapterRegistry registry) {
86
86
public void setSupportedMediaTypes (@ Nullable List <MediaType > supportedMediaTypes ) {
87
87
Assert .notEmpty (supportedMediaTypes , "MediaType List must not be empty" );
88
88
this .mediaTypes .clear ();
89
- if (supportedMediaTypes != null ) {
90
- this .mediaTypes .addAll (supportedMediaTypes );
91
- }
89
+ this .mediaTypes .addAll (supportedMediaTypes );
92
90
}
93
91
94
92
/**
Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ public ViewResolverSupport() {
57
57
public void setSupportedMediaTypes (@ Nullable List <MediaType > supportedMediaTypes ) {
58
58
Assert .notEmpty (supportedMediaTypes , "MediaType List must not be empty" );
59
59
this .mediaTypes .clear ();
60
- if (supportedMediaTypes != null ) {
61
- this .mediaTypes .addAll (supportedMediaTypes );
62
- }
60
+ this .mediaTypes .addAll (supportedMediaTypes );
63
61
}
64
62
65
63
/**
You can’t perform that action at this time.
0 commit comments