Consider @Generated annotations
See original GitHub issueThe @Generated
annotation is a signal that a Java source file has been generated programatically. It is used by some static analysis tools, and some code review interfaces automatically “collapse” diffs touching generated files.
It also provides a standard way to include metadata, such as a timestamp. Thrifty currently writes this information as a file comment.
There might be a small cost to including this additional annotation, but I’m not experienced enough in those aspects of today’s JVMs to estimate it.
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Generated Annotation, how do we use it? - Stack Overflow
The Generated annoation is used to mark source code that has been generated. It can also be used to differentiate user written code...
Read more >Generated (Java Platform SE 7 ) - Oracle Help Center
The Generated annotation is used to mark source code that has been generated. It can also be used to differentiate user written code...
Read more >How to avoid annotations generated in model source file ... - IBM
Cause. By default, Rhapsody would include annotations like "ignore", "auto-generated" in generated source files during code generation.
Read more >Adding @Generated annotation for generated code ... - GitHub
I wish to add a feature that will allow to add @Generated annotation on the generated sources. It could be a flag with...
Read more >Annotation Processing : Don't Repeat Yourself, Generate Your ...
First of all we check if our annotation is used in class or not. If it is not annotated in class then we...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done
Yes, thanks for the reminder. I’ll try to do it today.