Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent @NonNull annotation usage #93

Open
hadiidbouk opened this issue Jun 18, 2018 · 3 comments
Open

Inconsistent @NonNull annotation usage #93

hadiidbouk opened this issue Jun 18, 2018 · 3 comments
Labels
core lib Core Library enhancement General improvement good first issue

Comments

@hadiidbouk
Copy link

hadiidbouk commented Jun 18, 2018

Hello,

The registerLocationListener (unregisterLocationListener) method in AndroidLocationProvider are not nullable

registerLocationListener(@NonNull LocationListener locationListener)

But the same method in the IndoorPositioning (Which should be named IndoorPositioningProvider - i guess) are nullable.

registerLocationListener(LocationListener locationListener)

Can we follow the same convention in both methods ?

@hadiidbouk hadiidbouk changed the title registerLocationListener method parameters convention registerLocationListener & unregisterLocationListener method parameters convention Jun 18, 2018
@Steppschuh
Copy link
Contributor

That's true, but won't change anytime soon. It's because the @NonNull annotation is part of android.support.annotation and thus not available in the Java core library.

@hadiidbouk
Copy link
Author

But isn't the Java 8 contains a @NonNull annotation ?

Check this

@Steppschuh
Copy link
Contributor

Thanks for the heads up. We'll see if and how we can combine these annotations.

@Steppschuh Steppschuh reopened this Jun 19, 2018
@Steppschuh Steppschuh added enhancement General improvement good first issue core lib Core Library and removed wontfix labels Jun 19, 2018
@Steppschuh Steppschuh added this to To Do in Java Core Library via automation Jun 19, 2018
@Steppschuh Steppschuh changed the title registerLocationListener & unregisterLocationListener method parameters convention Inconsistent @NonNull annotation usage Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core lib Core Library enhancement General improvement good first issue
Projects
Development

No branches or pull requests

2 participants