@NonNull private static List<RaveError> createStringDefError(@Nullable String value,@NonNull String[] acceptableValues,@NonNull ValidationContext validationContext){
  StringBuilder stringBuilder=new StringBuilder();
  boolean first=true;
  for (  String string : acceptableValues) {
    if (!first) {
      stringBuilder.append(" ");
    }
 else {
      stringBuilder.append("{");
    }
    stringBuilder.append(string);
    first=false;
  }
  stringBuilder.append("}");
  return createNewList(new RaveError(validationContext,value + " " + RaveErrorStrings.STRING_DEF_ERROR+ stringBuilder.toString()));
}

@ NonNull private static List < RaveError > createStringDefError ( @ Nullable String value , @ NonNull String [ ] acceptableValues , @ NonNull ValidationContext validationContext ) { StringBuilder stringBuilder = new StringBuilder ( ) ; boolean first = true ; for ( String string : acceptableValues ) { if ( ! first ) { stringBuilder . append ( " " ) ; } else { stringBuilder . append ( "{" ) ; } stringBuilder . append ( string ) ; first = false ; } stringBuilder . append ( "}" ) ; return createNewList ( new RaveError ( validationContext , value + " " + RaveErrorStrings . STRING_DEF_ERROR + stringBuilder . toString ( ) ) ) ; }
create the error for stringdef .
