HaxeFoundation / HaxeFoundation/haxe

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

Open
#8,467 0 comments 0 reactions 0 assignees View on GitHub
enhancement feature-null-safety platform-jvm
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Hello! :)

Would be nice if `-java-lib` may parse Java's `@Nullable` annotation on function arguments.
For example, Java's method:
```java
public void setMapStyle(@Nullable MapStyleOptions options)
```
Is parsed as:
```haxe
public function setMapStyle(options:MapStyleOptions):Void;
```
intesad of:
```haxe
public function setMapStyle(options:Null):Void;
```

Which is not very well if you using the new null-safety feature.

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.