1 import proguard.annotation.*; 2 3 /** 4 * This bean illustrates the use of annotations for configuring ProGuard. 5 * 6 * You can compile it with: 7 * javac -classpath ../lib/annotations.jar Bean.java 8 * You can then process it with: 9 * java -jar ../../../lib/proguard.jar @ ../examples.pro 10 * 11 * The annotations will preserve the class and its public getters and setters, 12 * as a result of the specifications in lib/annotations.pro. 13 */ 14 @Keep 15 @KeepPublicGettersSetters 16 public class Bean 17 { 18 public boolean booleanProperty; 19 public int intProperty; 20 public String stringProperty; 21 22 23 public boolean isBooleanProperty() 24 { 25 return booleanProperty; 26 } 27 28 29 public void setBooleanProperty(boolean booleanProperty) 30 { 31 this.booleanProperty = booleanProperty; 32 } 33 34 35 public int getIntProperty() 36 { 37 return intProperty; 38 } 39 40 41 public void setIntProperty(int intProperty) 42 { 43 this.intProperty = intProperty; 44 } 45 46 47 public String getStringProperty() 48 { 49 return stringProperty; 50 } 51 52 53 public void setStringProperty(String stringProperty) 54 { 55 this.stringProperty = stringProperty; 56 } 57 } 58