1 /*
2  * Copyright (C) 2009 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 public class Blort {
test_getBooleanArray()18     public static boolean test_getBooleanArray() {
19         boolean[] arr = null;
20         return arr[1];
21     }
22 
test_getByteArray()23     public static byte test_getByteArray() {
24         byte[] arr = null;
25         return arr[2];
26     }
27 
test_getCharArray()28     public static char test_getCharArray() {
29         char[] arr = null;
30         return arr[3];
31     }
32 
test_getDoubleArray()33     public static double test_getDoubleArray() {
34         double[] arr = null;
35         return arr[4];
36     }
37 
test_getFloatArray()38     public static float test_getFloatArray() {
39         float[] arr = null;
40         return arr[5];
41     }
42 
test_getIntArray()43     public static int test_getIntArray() {
44         int[] arr = null;
45         return arr[6];
46     }
47 
test_getLongArray()48     public static long test_getLongArray() {
49         long[] arr = null;
50         return arr[7];
51     }
52 
test_getObjectArray()53     public static Object test_getObjectArray() {
54         Object[] arr = null;
55         return arr[8];
56     }
57 
test_getShortArray()58     public static short test_getShortArray() {
59         short[] arr = null;
60         return arr[9];
61     }
62 
test_setBooleanArray()63     public static void test_setBooleanArray() {
64         boolean[] arr = null;
65         arr[1] = true;
66     }
67 
test_setByteArray()68     public static void test_setByteArray() {
69         byte[] arr = null;
70         arr[2] = (byte) 3;
71     }
72 
test_setCharArray()73     public static void test_setCharArray() {
74         char[] arr = null;
75         arr[4] = (char) 5;
76     }
77 
test_setDoubleArray()78     public static void test_setDoubleArray() {
79         double[] arr = null;
80         arr[6] = 7.0F;
81     }
82 
test_setFloatArray()83     public static void test_setFloatArray() {
84         float[] arr = null;
85         arr[8] = 9.0F;
86     }
87 
test_setIntArray()88     public static void test_setIntArray() {
89         int[] arr = null;
90         arr[10] = 11;
91     }
92 
test_setLongArray()93     public static void test_setLongArray() {
94         long[] arr = null;
95         arr[12] = 13;
96     }
97 
test_setObjectArray()98     public static void test_setObjectArray() {
99         Object[] arr = null;
100         arr[14] = "blort";
101     }
102 
test_setShortArray()103     public static void test_setShortArray() {
104         short[] arr = null;
105         arr[15] = (short) 16;
106     }
107 }
108