📜 ⬆️ ⬇️

Lightweight library for Warning messages from javac via annotation

Java developers hello.

I share a lightweight (3kb) library, the only and the main task of which is to throw vorningi from a Java compiler.

The use is very simple: write a Warning annotation (“Reason text here”) and a companion will issue a vorning (the build doesn't stop at that).
')
// some code... @Warning("Refactor as soon as possible please") public void someCodeWhichYouNeedAtTheMomentButYouWantToRefactorItLater() { // bad stuff going on here... } 

Annotation Processor API used .

Github: https://github.com/pushtorefresh/javac-warning-annotation (published in mavenCentral)

I hope it will be useful.

PS In most cases it is better to start a task in a tasktracker instead of using this annotation, but for some things this option is quite appropriate.

Source: https://habr.com/ru/post/247509/


All Articles