Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: build/android/tests/multiple_proguards/src/dummy/DummyActivity.java

Issue 571203003: Remove guava dependency for multiple_proguards test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-more-guava-dependencies
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/tests/multiple_proguards/proguard2.flags ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package dummy; 5 package dummy;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.os.Bundle;
9 8
10 /** 9 /**
11 * Dummy activity to build apk. 10 * Dummy activity to build apk.
11 *
12 * This class is created to ensure that proguard will produce two separate warni ngs.
12 */ 13 */
13 public class DummyActivity extends Activity { 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 }
14 } 26 }
OLDNEW
« no previous file with comments | « build/android/tests/multiple_proguards/proguard2.flags ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698