OLD | NEW |
| (Empty) |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package dummy; | |
6 | |
7 import android.app.Activity; | |
8 | |
9 /** | |
10 * Dummy activity to build apk. | |
11 * | |
12 * This class is created to ensure that proguard will produce two separate warni
ngs. | |
13 */ | |
14 public class DummyActivity extends Activity { | |
15 private static void doBadThings1() { | |
16 try { | |
17 sun.misc.Unsafe.getUnsafe(); | |
18 } catch (Exception e) { | |
19 throw new Error(e); | |
20 } | |
21 } | |
22 | |
23 private static void doBadThings2() { | |
24 sun.reflect.Reflection.getCallerClass(2); | |
25 } | |
26 } | |
OLD | NEW |