| Crates.io | annotator |
| lib.rs | annotator |
| version | 0.1.2 |
| created_at | 2025-12-08 18:51:06.695086+00 |
| updated_at | 2025-12-12 15:10:59.215649+00 |
| description | A simple CLI tool to automatically annotate Java source code files. |
| homepage | |
| repository | https://github.com/vtramo/java-annotator |
| max_upload_size | |
| id | 1974207 |
| size | 28,139 |
A simple CLI tool to automatically annotate Java types (class, interface, enum, inner class, or inner interface) with a set of specified Java annotations.
This tool adds the specified Java annotations to all encountered Java types (class, interface, enum, inner class, or inner interface) that do not already possess that particular Java annotation.
Process Java files in a path (file or directory recursively) with specified annotations.
annotator <PATH> -a <ANNOTATION>
You need to specify one or more fully qualified annotation names. The tool will automatically add the import if it isn't present.
annotator src/java -a @lombok.Generated
src/java/java/a/b/C.java C
src/java/a/B.java B
src/java/A.java A
The output exclusively lists the paths of the Java source files that were actually modified, followed by the name of the Java types (class, interface, enum, inner class, or inner interface) that received the annotation within that file.
Install cargo. Then, run:
cargo install annotator