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

recognize java.time types as immutable #477

Closed
michaelhixson opened this issue Nov 15, 2016 · 2 comments
Closed

recognize java.time types as immutable #477

michaelhixson opened this issue Nov 15, 2016 · 2 comments

Comments

@michaelhixson
Copy link
Contributor

I see you have a whitelist for known-immutable types recognized by the @Immutable annotation / bug pattern. Would you consider adding the immutable java.time types to that list?

I have lots of types that should be @Immutable, but maybe half of them have a LocalDateTime or something similar that trips up error prone. I could add a bunch of @SuppressWarnings but it would be cool if I didn't have to.

@cushon
Copy link
Collaborator

cushon commented Nov 15, 2016

Would you consider adding the immutable java.time types to that list?

Definitely. Any interest in putting together a PR?

@michaelhixson
Copy link
Contributor Author

Will do.

cushon pushed a commit that referenced this issue Nov 15, 2016
)

Also whitelist abstract classes with the same contract and whitelist the
implementations of those interfaces and abstract classes.

Fixes #477
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

No branches or pull requests

2 participants