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

Ensure that better-strings runs before any (?) other annotation processor #5

Open
PawelLipski opened this issue Apr 17, 2020 · 1 comment

Comments

@PawelLipski
Copy link
Contributor

Not sure if that can done without a dedicated build-tool-specific plugin (for Maven/Gradle)... anyway, I'd be pretty nice if there was a way to ensure better-strings is run before other common annotation processors like https://github.com/checkstyle/checkstyle or (the very awesome) https://github.com/typetools/checker-framework. Otherwise they won't have the chance to statically verify the Java code within the interpolations.

@antkorwin
Copy link
Owner

I think we can do it only with a build tool (maven/gradle).

As I know in the source code of APT you cannot set the ordering. And the order of loading annotation processors depends on the class loader implementation, it's unpredictable.

But I think this is a good point to explain in the documentation. "How to use with other annotation processors"

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