Java Annotations, .class file size and performance
I had a basic question on Java Annotations (primarily related to performance and .class file memory foot print)-
How can I configure annotations to be available/unavailable in the final .class file?
From a memory foot-print perspective, a .class file with annotations is obviously larger than a .class file without annotations; but is there a very simple/standard way of enabling/disabling annotations when I create a production ready deployment (e.g. what is a best way to disable JUnit annotations on all classes with embedded annotations based JUnit test cases such as @Test, @Before etc.?)
Thanks in advance.