haxe icon indicating copy to clipboard operation
haxe copied to clipboard

[java] -java-lib should parse @Nullable for proper Null-safety work

Open posxposy opened this issue 6 years ago • 0 comments

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!

posxposy avatar Jun 24 '19 14:06 posxposy