@ SuppressWarnings ( { "PMD.UseObjectForClearerAPI" } ) // CHECKSTYLE:ON private static void logDefault ( final String key , final String invalidValue , final String validationError , final String defaultValue ) { if ( LOG . isWarnEnabled ( ) ) { final StringBuilder msg = new StringBuilder ( "Invalid value ('" ) . append ( invalidValue ) . append ( "', " ) . append ( validationError ) . append ( ") for key '" ) . append ( key ) . append ( "', using default instead ('" ) ; if ( defaultValue == null ) { msg . append ( "null')" ) ; } else { msg . append ( defaultValue ) . append ( "')" ) ; } LOG . warn ( msg . toString ( ) ) ; } }
suppress warnings about not using an object for the four strings in this PRIVATE method