final Object fieldValue = this.getValue(field); if (!excludeNullValues || fieldValue != null) { this.append(fieldName, fieldValue, !field.isAnnotationPresent(ToStringSummary.class));
@Override protected Object getValue(final Field field) throws IllegalArgumentException, IllegalAccessException { if (field.isAnnotationPresent(ConfigXmlSecretField.class) == true) { return SECRET_PROPERTY_STRING; } return super.getValue(field); }
@Override protected Object getValue(final Field field) throws IllegalAccessException { final Object value = super.getValue(field); if (value instanceof String) { // long strings will get truncated final String stringValue = (String) value; return StringUtils.abbreviate(stringValue, MAX_STRING_LENGTH); } else { return value; } } }
@Override protected Object getValue(final Field field) throws IllegalAccessException { final Object value = super.getValue(field); if (value instanceof String) { // long strings will get truncated final String stringValue = (String) value; return StringUtils.abbreviate(stringValue, MAX_STRING_LENGTH); } else { return value; } } }
final Object fieldValue = this.getValue(field); if (!excludeNullValues || fieldValue != null) { this.append(fieldName, fieldValue, !field.isAnnotationPresent(ToStringSummary.class));
final Object fieldValue = this.getValue(field); if (!excludeNullValues || fieldValue != null) { this.append(fieldName, fieldValue, !field.isAnnotationPresent(ToStringSummary.class));
final Object fieldValue = this.getValue(field); if (!excludeNullValues || fieldValue != null) { this.append(fieldName, fieldValue, !field.isAnnotationPresent(ToStringSummary.class));