Changes between Version 64 and Version 65 of j2p


Ignore:
Timestamp:
05/15/24 10:12:46 (6 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v64 v65  
    125125{{{@Nonnull String val}}} or {{{@Nonnull String f() { ... } }}}. Java primitive types like {{{boolean}}} and {{{int}}} can never be null and do not need @Nonnull
    126126
    127 Note that Nonnull is NOT inherited by subclasses (was decided so by Java engineers). Therefore the has to be repeated in the derived classes.
     127{{{#!td style="background: #fee"
     128@Nonnull can be used by the java compiler to do extra checks on your code. You may need to enable this. For instance in Eclipse check Preferences/Java/Compiler/Errors/Warnings and scroll down to "Null Analysis"
     129}}}
     130
     131{{{#!td style="background: #eef"
     132@Nonnull is NOT inherited by subclasses (was decided so by Java engineers). Therefore the has to be repeated in the derived classes.
     133}}}
     134
     135
    128136
    129137==== More notes: