Skip to content

Commit

Permalink
SpringValidatorAdapter declares ResolvableAttribute as serializable
Browse files Browse the repository at this point in the history
Issue: SPR-14778
  • Loading branch information
jhoeller committed Oct 5, 2016
1 parent ffc781b commit ebed7b7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.springframework.validation.beanvalidation;

import java.io.Serializable;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.LinkedList;
Expand Down Expand Up @@ -310,7 +311,8 @@ public ExecutableValidator forExecutables() {
* Wrapper for a String attribute which can be resolved via a {@code MessageSource},
* 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;

Expand Down

0 comments on commit ebed7b7

Please sign in to comment.