public void addWarning ( WarningMessage message ) { if ( message . isRelevant ( configuration . getWarningLevel ( ) ) ) { if ( this . warnings == null ) { this . warnings = new LinkedList ( ) ; } this . warnings . add ( message ) ; } }
Adds a WarningMessage to the message set .