Constant conditions & configurations
Hi,
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 );
}
Thanks
Johannes Schneider
Please sign in to leave a comment.
This is a bug that has already been fixed.