summaryrefslogtreecommitdiff
path: root/examples/annotations/examples/Bean.java
blob: aacb501671f1b719e953df7ea15f6486abb15794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import proguard.annotation.*;

/**
 * This bean illustrates the use of annotations for configuring ProGuard.
 *
 * You can compile it with:
 *     javac -classpath ../lib/annotations.jar Bean.java
 * You can then process it with:
 *     java -jar ../../../lib/proguard.jar @ ../examples.pro
 *
 * The annotations will preserve the class and its public getters and setters,
 * as a result of the specifications in lib/annotations.pro.
 */
@Keep
@KeepPublicGettersSetters
public class Bean
{
    public boolean booleanProperty;
    public int     intProperty;
    public String  stringProperty;


    public boolean isBooleanProperty()
    {
        return booleanProperty;
    }


    public void setBooleanProperty(boolean booleanProperty)
    {
        this.booleanProperty = booleanProperty;
    }


    public int getIntProperty()
    {
        return intProperty;
    }


    public void setIntProperty(int intProperty)
    {
        this.intProperty = intProperty;
    }


    public String getStringProperty()
    {
        return stringProperty;
    }


    public void setStringProperty(String stringProperty)
    {
        this.stringProperty = stringProperty;
    }
}