|
|
|
@ -86,9 +86,7 @@ public abstract class AbstractView implements View, ApplicationContextAware {
@@ -86,9 +86,7 @@ public abstract class AbstractView implements View, ApplicationContextAware {
|
|
|
|
|
public void setSupportedMediaTypes(@Nullable List<MediaType> supportedMediaTypes) { |
|
|
|
|
Assert.notEmpty(supportedMediaTypes, "MediaType List must not be empty"); |
|
|
|
|
this.mediaTypes.clear(); |
|
|
|
|
if (supportedMediaTypes != null) { |
|
|
|
|
this.mediaTypes.addAll(supportedMediaTypes); |
|
|
|
|
} |
|
|
|
|
this.mediaTypes.addAll(supportedMediaTypes); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|