1 import proguard.annotation.KeepApplication; 2 3 /** 4 * This application illustrates the use of annotations for configuring ProGuard. 5 * 6 * You can compile it with: 7 * javac -classpath ../lib/annotations.jar Application.java 8 * You can then process it with: 9 * java -jar ../../../lib/proguard.jar @ ../examples.pro 10 * 11 * The annotation will preserve the class and its main method, 12 * as a result of the specifications in lib/annotations.pro. 13 */ 14 @KeepApplication 15 public class Application 16 { main(String[] args)17 public static void main(String[] args) 18 { 19 System.out.println("The answer is 42"); 20 } 21 } 22