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

Mark input listeners as nullable #1313

Merged
merged 2 commits into from
Mar 24, 2021
Merged

Mark input listeners as nullable #1313

merged 2 commits into from
Mar 24, 2021

Conversation

tyrondis
Copy link
Contributor

Even though Keyboard.notify() and Keyboard.remove() treat all listeners as nullable, they are not marked as such. This leads to compile errors when using --macro nullSafety('[...]', StrictThreaded). This PR marks the parameters as nullable.

@tyrondis
Copy link
Contributor Author

I just realised that the same problem occurs in other input classes (e.g. Mouse). I am going to adjust them as well in a bit.

@tyrondis tyrondis changed the title Mark keyboard listeners as nullable Mark input listeners as nullable Mar 23, 2021
@RobDangerous RobDangerous merged commit 4fd2d7f into Kode:master Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants