summaryrefslogtreecommitdiff
path: root/examples/annotations/examples/Applet.java
blob: e5b7accac486be37bf5a400be400635e4e349c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import proguard.annotation.*;

/**
 * This applet illustrates the use of annotations for configuring ProGuard.
 *
 * You can compile it with:
 *     javac -classpath ../lib/annotations.jar Applet.java
 * You can then process it with:
 *     java -jar ../../../lib/proguard.jar @ ../examples.pro
 *
 * The annotation will preserve the class and its essential methods,
 * as a result of the specifications in lib/annotations.pro.
 */
@Keep
public class Applet extends java.applet.Applet
{
    // Implementations for Applet.

    public void init()
    {
        // ...
    }
}