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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/tests/multiple_proguards/proguard2.flags ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/tests/multiple_proguards/src/dummy/DummyActivity.java
diff --git a/build/android/tests/multiple_proguards/src/dummy/DummyActivity.java b/build/android/tests/multiple_proguards/src/dummy/DummyActivity.java
index 291a8100f394307d471d69237eee321c2a5fcc7f..2ff8c4f4f4c91d3caa156ac6329ac767f9b4865d 100644
--- a/build/android/tests/multiple_proguards/src/dummy/DummyActivity.java
+++ b/build/android/tests/multiple_proguards/src/dummy/DummyActivity.java
@@ -5,10 +5,22 @@
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);
+ }
}
« 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