haxe
haxe copied to clipboard
[java] -java-lib should parse @Nullable for proper Null-safety work
Hello! :)
Would be nice if -java-lib may parse Java's @Nullable annotation on function arguments.
For example, Java's method:
public void setMapStyle(@Nullable MapStyleOptions options)
Is parsed as:
public function setMapStyle(options:MapStyleOptions):Void;
intesad of:
public function setMapStyle(options:Null<MapStyleOptions>):Void;
Which is not very well if you using the new null-safety feature.
Thank you!