summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2018-02-16 10:39:40 -0800
committer Andreas Gampe <agampe@google.com> 2018-02-16 10:39:40 -0800
commit109e8273bf533e2961ec791a68eebc86d9247aa9 (patch)
tree8824cd43977eaa42f23679298e7738dfa301f63b
parentd937c49b19a6005cf94e23d464415be47e995d9b (diff)
ART: Suppress a warning in run-test 912
Bug: 73539757 Test: m test-art-host Change-Id: Ib2ce20dede2df8caa829e9480e02669ced65ed57
-rw-r--r--test/912-classes/src-art/art/Test912.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/912-classes/src-art/art/Test912.java b/test/912-classes/src-art/art/Test912.java
index ddfadf3626..1a60185f49 100644
--- a/test/912-classes/src-art/art/Test912.java
+++ b/test/912-classes/src-art/art/Test912.java
@@ -398,6 +398,7 @@ public class Test912 {
public static double dummy = Math.random(); // So it can't be compile-time initialized.
}
+ @SuppressWarnings("RandomCast")
private static class TestForInitFail {
public static int dummy = ((int)Math.random())/0; // So it throws when initializing.
}