Greetings Srikanth,
Thanks for the catch. This is a specification bug. The example should have been for static class member access in a declaration:
@NonNull Map.Entry mapEntry;
The compiler is correct in this case.
Thanks for noticing it, and please report any further errors you may find.
Regards,
Mahmood