SpringValidatorAdapter declares ResolvableAttribute as serializable
Issue: SPR-14778
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package org.springframework.validation.beanvalidation;
|
package org.springframework.validation.beanvalidation;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
@@ -310,7 +311,8 @@ public class SpringValidatorAdapter implements SmartValidator, javax.validation.
|
|||||||
* Wrapper for a String attribute which can be resolved via a {@code MessageSource},
|
* Wrapper for a String attribute which can be resolved via a {@code MessageSource},
|
||||||
* falling back to the original attribute as a default value otherwise.
|
* falling back to the original attribute as a default value otherwise.
|
||||||
*/
|
*/
|
||||||
private static class ResolvableAttribute implements MessageSourceResolvable {
|
@SuppressWarnings("serial")
|
||||||
|
private static class ResolvableAttribute implements MessageSourceResolvable, Serializable {
|
||||||
|
|
||||||
private final String resolvableString;
|
private final String resolvableString;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user