Hi,
Since we decided to switch to Java 1.5, I found a nice use for annotations.
We can detect usage of deprecated APIs in java, but it is hard to do in
velocity. One way we can accomplish this is by writing our own velocity
uberspector, that checks if a method call is deprecated or not, and logs
the calls to deprecated methods. This will allow us to easily spot
deprecated code in our templates and fix them.
The drawback is that it could slow things down a bit.
The advantage is that as long as we properly use annotations, any
deprecated method used will be listed in the log.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/