private static void mergeErrors ( final BindingResult bindingResult , final BindingResult result ) { if ( bindingResult == null ) { return ; } result . addErrors ( bindingResult . getLocalErrors ( ) ) ; for ( final Map . Entry < String , BindingResult > child : bindingResult . getChildren ( ) . entrySet ( ) ) { mergeErrors ( child . getValue ( ) , result . getChildOrAdd ( child . getKey ( ) ) ) ; } }
Merge all errors of this binding into this result