Constant conditions & configurations


I have the following code. The expression "key != null" is marked as
"key != null is always false.
The method "geMnemonicKey" is annotated as @Nullable.

Can anybody tell me if this is a bug / I am missing something / how I
can avoid this warning?

Integer key = ActionDecorator.getMnemonicKey( resolver.getString(
node.getName() + '.' + ActionDecorator.MNEMONIC ) );
if ( key != null ) {
menu.setMnemonic( key );


Johannes Schneider

1 comment
Comment actions Permalink

This is a bug that has already been fixed.


Please sign in to leave a comment.