Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcfoggy/force-annotation-demo
demo project to force annotation on types using annotation processing
https://github.com/mcfoggy/force-annotation-demo
annotation-processing demo java maven
Last synced: 18 days ago
JSON representation
demo project to force annotation on types using annotation processing
- Host: GitHub
- URL: https://github.com/mcfoggy/force-annotation-demo
- Owner: McFoggy
- Created: 2016-11-26T10:55:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-26T11:03:44.000Z (about 8 years ago)
- Last Synced: 2024-11-05T23:44:10.467Z (2 months ago)
- Topics: annotation-processing, demo, java, maven
- Language: Java
- Homepage: http://blog.matthieu.brouillard.fr/2016/11/26/ensure-annotation-on-classes/
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# responsible annotations
Demo project for a blog [post](http://blog.matthieu.brouillard.fr/2016/11/26/ensure-annotation-on-classes/) on how to enforce the definition of annotations on java types using annotation processing.
When building: `mvn clean install`, the build MUST fail with the following error:
```
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] fr.brouillard.oss.app.ServiceTwo must be annotated with @fr.brouillard.oss.annotation.Responsible to declare a ownership
[INFO] 1 error
```