gradle-baseline icon indicating copy to clipboard operation
gradle-baseline copied to clipboard

Consider an equivalent of upstream 'ExtendsAutoValue' for Immutables

Open carterkozak opened this issue 5 years ago • 0 comments

See https://errorprone.info/bugpattern/ExtendsAutoValue code: https://github.com/google/error-prone/blob/master/core/src/main/java/com/google/errorprone/bugpatterns/ExtendsAutoValue.java

What happened?

The same justification applies to immutables, but it would be helpful to provide a check at build time. I've fixed bugs caused by this where a threadpool was created in a default method and assumed to be cached, but the human-generated implementation failed to follow the annotation contract.

What did you want to happen?

fail compilation.

carterkozak avatar Jan 23 '20 14:01 carterkozak