common/src/main/java/org/beiter/michael/authn/jaas/common/messageq/SampleMessageLogger.java
@SuppressWarnings("PMD.GuardLogStatementJavaUtil")
    @Override
    public final void create(final Events event, final String userId) {

        Validate.notNull(event, "The validated object 'event' is null");
        Validate.notBlank(userId, "The validated character sequence 'userId' is null or empty");

        // PMD does not recognize the guarded log statement
        if (LOG.isInfoEnabled()) {
            LOG.info("[MESSAGEQ] " + event.getValue() + ". User ID '" + userId);
        }
    }
@SuppressWarnings("PMD.GuardLogStatementJavaUtil")
    @Override
    public final void create(final Events event, final String userId) {

        Validate.notNull(event, "The validated object 'event' is null");
        Validate.notBlank(userId, "The validated character sequence 'userId' is null or empty");

        // PMD does not recognize the guarded log statement
        if (LOG.isInfoEnabled()) {
            LOG.info("[MESSAGEQ] " + event.getValue() + ". User ID '" + userId);
        }
    }
@ SuppressWarnings ( "PMD.GuardLogStatementJavaUtil" ) @ Override public final void create ( final Events event , final String userId ) { Validate . notNull ( event , "The validated object 'event' is null" ) ; Validate . notBlank ( userId , "The validated character sequence 'userId' is null or empty" ) ; // PMD does not recognize the guarded log statement if ( LOG . isInfoEnabled ( ) ) { LOG . info ( "[MESSAGEQ] " + event . getValue ( ) + ". User ID '" + userId ) ; } }
Check is broken [LOG.info()]: PMD reports issues although log stmt is guarded. @todo revisit when upgrading PMD.
Check is broken [ LOG . info () ] : PMD reports issues although log stmt is guarded .