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 */ 13 @KeepApplication 14 public class Application 15 { 16 public static void main(String[] args) 17 { 18 System.out.println("The answer is 42"); 19 } 20 } 21