diff options
author | Brian Carlstrom <bdc@google.com> | 2015-01-09 00:45:23 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-09 00:45:23 +0000 |
commit | 6af8f1004e0efe02a138286a34e833d1f3d227d7 (patch) | |
tree | 9ac962825d41c4fb8ad1ec0fc2e8b441b42d3869 /examples/annotations/examples/NativeCallBack.java | |
parent | 9961286c06c25cd03464d3e2b00bd9b9dedf96ba (diff) | |
parent | cd9e071098d0539dda3a4a5d3f45cfd8814de4ed (diff) | |
download | proguard-6af8f1004e0efe02a138286a34e833d1f3d227d7.tar.gz |
Merge "Upgrade Proguard to 5.1."
Diffstat (limited to 'examples/annotations/examples/NativeCallBack.java')
-rw-r--r-- | examples/annotations/examples/NativeCallBack.java | 14 |
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(); |