commit | 109e8273bf533e2961ec791a68eebc86d9247aa9 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Fri Feb 16 10:39:40 2018 -0800 |
committer | Andreas Gampe <agampe@google.com> | Fri Feb 16 10:39:40 2018 -0800 |
tree | 8824cd43977eaa42f23679298e7738dfa301f63b | |
parent | d937c49b19a6005cf94e23d464415be47e995d9b [diff] |
ART: Suppress a warning in run-test 912 Bug: 73539757 Test: m test-art-host Change-Id: Ib2ce20dede2df8caa829e9480e02669ced65ed57
diff --git a/test/912-classes/src-art/art/Test912.java b/test/912-classes/src-art/art/Test912.java index ddfadf3..1a60185 100644 --- a/test/912-classes/src-art/art/Test912.java +++ b/test/912-classes/src-art/art/Test912.java
@@ -398,6 +398,7 @@ 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. }