Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / build / android / tests / multiple_proguards / src / dummy / DummyActivity.java
index 291a810..72f20f4 100644 (file)
@@ -1,14 +1,26 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Copyright 2013 The Chromium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
 package dummy;
 
 import android.app.Activity;
-import android.os.Bundle;
 
 /**
  * Dummy activity to build apk.
+ *
+ * This class is created to ensure that proguard will produce two separate warnings.
  */
 public class DummyActivity extends Activity {
+    private static void doBadThings1() {
+        try {
+            sun.misc.Unsafe.getUnsafe();
+        } catch (Exception e) {
+            throw new Error(e);
+        }
+    }
+
+    private static void doBadThings2() {
+        sun.reflect.Reflection.getCallerClass(2);
+  }
 }