summaryrefslogtreecommitdiff
path: root/examples/annotations/examples/NativeCallBack.java
diff options
context:
space:
mode:
Diffstat (limited to 'examples/annotations/examples/NativeCallBack.java')
-rw-r--r--examples/annotations/examples/NativeCallBack.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/examples/annotations/examples/NativeCallBack.java b/examples/annotations/examples/NativeCallBack.java
index 2c72f7b..a4e5583 100644
--- a/examples/annotations/examples/NativeCallBack.java
+++ b/examples/annotations/examples/NativeCallBack.java
@@ -8,7 +8,8 @@ import proguard.annotation.*;
* You can then process it with:
* java -jar ../../../lib/proguard.jar @ ../examples.pro
*
- * The annotation will preserve the class and its main method.
+ * The annotation will preserve the class and its main method,
+ * as a result of the specifications in lib/annotations.pro.
*/
@KeepApplication
public class NativeCallBack
@@ -16,8 +17,9 @@ public class NativeCallBack
/**
* Suppose this is a native method that computes an answer.
*
- * The -keep option regular ProGuard configuration will make sure it is
- * not renamed when processing this code.
+ * The -keep option for native methods in the regular ProGuard
+ * configuration will make sure it is not removed or renamed when
+ * processing this code.
*/
public native int computeAnswer();
@@ -35,6 +37,12 @@ public class NativeCallBack
}
+ /**
+ * The main entry point of the application.
+ *
+ * The @KeepApplication annotation of this class will make sure it is not
+ * removed or renamed when processing this code.
+ */
public static void main(String[] args)
{
int answer = new NativeCallBack().computeAnswer();