mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Creates dedicated TextProvider for given class
This commit is contained in:
+2
@@ -186,6 +186,8 @@ public class VisitorFieldValidator extends FieldValidatorSupport {
|
||||
List<TextProvider> textProviders = new LinkedList<>();
|
||||
if (o instanceof TextProvider) {
|
||||
textProviders.add((TextProvider) o);
|
||||
} else {
|
||||
textProviders.add(textProviderFactory.createInstance(o.getClass()));
|
||||
}
|
||||
textProviders.add(parent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user