Home | History | Annotate | Download | only in examples
      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  */
     13 @Keep
     14 @KeepPublicGettersSetters
     15 public class Bean
     16 {
     17     public boolean booleanProperty;
     18     public int     intProperty;
     19     public String  stringProperty;
     20 
     21 
     22     public boolean isBooleanProperty()
     23     {
     24         return booleanProperty;
     25     }
     26 
     27 
     28     public void setBooleanProperty(boolean booleanProperty)
     29     {
     30         this.booleanProperty = booleanProperty;
     31     }
     32 
     33 
     34     public int getIntProperty()
     35     {
     36         return intProperty;
     37     }
     38 
     39 
     40     public void setIntProperty(int intProperty)
     41     {
     42         this.intProperty = intProperty;
     43     }
     44 
     45 
     46     public String getStringProperty()
     47     {
     48         return stringProperty;
     49     }
     50 
     51 
     52     public void setStringProperty(String stringProperty)
     53     {
     54         this.stringProperty = stringProperty;
     55     }
     56 }
     57