Changes between Version 116 and Version 117 of j2p


Ignore:
Timestamp:
08/20/24 09:07:22 (2 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v116 v117  
    168168{{{@NonNull String val}}} or {{{@NonNull String f() { ... } }}}. Java primitive types like {{{boolean}}} and {{{int}}} can never be null and do not need {{{@NonNull}}}
    169169
    170 The dependency needed for this is (unfortunately this annotation is not built in anymore in the JRE)
     170The dependency needed for this is
    171171{{{
    172172<dependency>
     
    176176</dependency>
    177177}}}
     178
     179Unfortunately this annotation is not built in anymore in the JRE. But this dependency is very lightweight (the jar is 11kb) and is completely separate from the Eclipse IDE platform.
    178180
    179181Java code {{{X instanceof C}}} is translated as in Java, so null/None is not an instance of C - C is not "Optional" and you do not need to write {{{X instanceof @NonNull C}}}.