private String deDuplicatedErrors ( List < ConfigErrors > allErrors ) { Set < String > errors = allErrors . stream ( ) . map ( ConfigErrors :: firstError ) . collect ( Collectors . toSet ( ) ) ; return StringUtils . join ( errors , "," ) ; }
Hack to remove duplicate errors . See AdminRole . addError