if (string != null) { for (int i = 0; i < string.length(); i++) { if (!Character.isJavaIdentifierPart(string.charAt(i))) { value.addError("It may only contain letters, " + "digits, and underscores"); break; }
for (int i = 0; i < string.length(); i++) { if (!Character.isJavaIdentifierPart(string.charAt(i))) { errors.add("The value may contain letters, digits, " + "and underscores only"); break;
    public void validate(final ParameterValue value) {        super.validate(value);        final String string = (String) value.getValue();        if (string != null) {            for (int i = 0; i < string.length(); i++) {                if (!Character.isJavaIdentifierPart(string.charAt(i))) {                    value.addError("It may only contain letters, " +                                   "digits, and underscores");                    break;                }            }        }    }