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
Treat type annotations in (generic) method and class signatures as API #372
Comments
Thanks for the report @vlsi. Can you tell me which version of the plugin you were using? Version 0.68.0 included a number of fixes relating to annotations. If the issue persists, a minimal reproducer would help a lot. |
I used 0.71.0 |
Thanks. I have an existing test suite covering various annotation cases, but I do not cover this scenario (yet). |
The fix for this will be in the next release. |
Nice, thank you. |
Just released 0.73.0 with this fix. |
Nice. It seems to heal all the issues with type annotations in Calcite. |
Woohoo!
On May 5, 2021, GitHub ***@***.***> wrote:
Nice. It seems to heal all the issues with type annotations in
Calcite.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<https://github.com/autonomousapps/dependency-analysis-android-gradle-
plugin/issues/372#issuecomment-833328409>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/ABJG5PIU4TF5LGY225KFOTDTMJF5HANCNFSM4YS6A3UQ>.
|
Is your feature request related to a problem? Please describe.
It looks like the plugin does not always detect type annotations, so it suggests
api -> implementation
while the proper configuration should beapi
.I do not have a standalone sample yet, and it looks like this issue results in false-positives for Caclite code: apache/calcite#2362
Describe the solution you'd like
I expect that dependency-analysis should gather type annotations from all signatures (including generic signatures).
Additional context
The relevant bit of the report:
AFAIK,
checker-qual
is annotation-only dependency.Sample uses for
@Nullable
.buildHealth
suggestsimplementation
, however, the annotations are used in the signatures of the public methods, so the dependency should beapi
.https://github.com/apache/calcite/blob/0fb14d553764f2a993ec56db4a36de2713ac1206/example/csv/src/main/java/org/apache/calcite/adapter/csv/CsvTableScan.java#L89
https://github.com/apache/calcite/blob/0fb14d553764f2a993ec56db4a36de2713ac1206/example/csv/src/main/java/org/apache/calcite/adapter/csv/CsvTableFactory.java#L46
The text was updated successfully, but these errors were encountered: