Changes between Version 72 and Version 73 of j2p
- Timestamp:
- 05/16/24 10:40:27 (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v72 v73 122 122 All these complications around varargs, including more eg [https://github.com/mrocklin/multipledispatch/issues/72 around dispatching vararg-typed methods] led us to currently not support varargs. 123 123 124 ==== @Non null124 ==== @NonNull 125 125 Java variables like {{{String val}}} can contain a null value, and functions like {{{String f() { ... } }}} can return null. Therefore they are translated to {{{val:Optional[str]}}} and {{{def f(self)->Optional[str]}}}. 126 126 You can annotate the java code with @NonNull (from {{{org.eclipse.jdt.annotation.NonNull}}}) to indicate the value/return value will not be null, like this