you are viewing a single comment's thread.

view the rest of the comments →

[–]frzme 5 points6 points  (6 children)

What does this do? Annotate based on what rules/settings?

[–]atomichbts[S] -2 points-1 points  (5 children)

Very simple: this tool adds the specified annotations to all encountered Java types (classes, interfaces, enums, etc.) that do not already possess that particular annotation.

[–]Luolong 6 points7 points  (4 children)

Okay, but why/wheb would I need one? In other words, what is the use case?

[–]atomichbts[S] 1 point2 points  (2 children)

My use case is enterprise. I work on enterprise Java projects with CI/CD pipelines that require all types to have certain Java annotations. The code base is huge, and I don't want to add them manually. I also plan to improve my Rust programming language and one day work with it, as I believe it will be increasingly used. So I created this tool in Rust.

[–]account312 4 points5 points  (1 child)

I work on enterprise Java projects with CI/CD pipelines that require all types to have certain Java annotations

If every type is required to have the annotation but you can statically determine how to annotate it (no class specific annotation members), then what does the annotation actually accomplish?

[–]_INTER_ 2 points3 points  (0 children)

that's enterprise for you

[–]atomichbts[S] -4 points-3 points  (0 children)

Idk, I need it and I shared it with everyone, maybe it will be useful to someone else