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

Documentation on new AutoUnboxing wart is missing #646

Open
slandelle opened this issue May 25, 2022 · 3 comments
Open

Documentation on new AutoUnboxing wart is missing #646

slandelle opened this issue May 25, 2022 · 3 comments

Comments

@slandelle
Copy link

  • Scala version: 2.13.8
  • wartremover version: 3.0.4

Hello,

I'm struggling with the new AutoUnboxing wart that was introduced in 3.0.4.

For example, I have some Java API that returns a java.lang.Boolean and I want to make it an Option[Boolean]. What's wrong with Option(javaBooleanWrapper) and how should I fix it?

Honestly, more than often, I'm puzzled on the motivation behind some warts and how to fix. I would be great to have some explanations in the documentation and guidelines in the documentation, possibly with a pointer in the compiler error.

Regards,

Stéphane

@slandelle
Copy link
Author

@xuwei-k You've flagged this ticket as "Needs help", but how can I help?

@tsawada
Copy link

tsawada commented Jan 12, 2023

I think you are supposed to call booleanValue().

@aartigao
Copy link

A year later, I'm here for the same reasons... Why is this needed? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants