Changes between Version 116 and Version 117 of j2p
- Timestamp:
- 08/20/24 09:07:22 (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v116 v117 168 168 {{{@NonNull String val}}} or {{{@NonNull String f() { ... } }}}. Java primitive types like {{{boolean}}} and {{{int}}} can never be null and do not need {{{@NonNull}}} 169 169 170 The dependency needed for this is (unfortunately this annotation is not built in anymore in the JRE)170 The dependency needed for this is 171 171 {{{ 172 172 <dependency> … … 176 176 </dependency> 177 177 }}} 178 179 Unfortunately 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. 178 180 179 181 Java 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}}}.