1*055d4590SKeyi Gui /* 2*055d4590SKeyi Gui * Copyright (C) 2007 The Android Open Source Project 3*055d4590SKeyi Gui * 4*055d4590SKeyi Gui * Licensed under the Apache License, Version 2.0 (the "License"); 5*055d4590SKeyi Gui * you may not use this file except in compliance with the License. 6*055d4590SKeyi Gui * You may obtain a copy of the License at 7*055d4590SKeyi Gui * 8*055d4590SKeyi Gui * http://www.apache.org/licenses/LICENSE-2.0 9*055d4590SKeyi Gui * 10*055d4590SKeyi Gui * Unless required by applicable law or agreed to in writing, software 11*055d4590SKeyi Gui * distributed under the License is distributed on an "AS IS" BASIS, 12*055d4590SKeyi Gui * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*055d4590SKeyi Gui * See the License for the specific language governing permissions and 14*055d4590SKeyi Gui * limitations under the License. 15*055d4590SKeyi Gui */ 16*055d4590SKeyi Gui 17*055d4590SKeyi Gui public class Blort 18*055d4590SKeyi Gui { test01(boolean[] x)19*055d4590SKeyi Gui public boolean test01(boolean[] x) { 20*055d4590SKeyi Gui x[0] = true; 21*055d4590SKeyi Gui return x[1]; 22*055d4590SKeyi Gui } 23*055d4590SKeyi Gui test02(byte[] x)24*055d4590SKeyi Gui public byte test02(byte[] x) { 25*055d4590SKeyi Gui x[0] = 5; 26*055d4590SKeyi Gui return x[1]; 27*055d4590SKeyi Gui } 28*055d4590SKeyi Gui test03(short[] x)29*055d4590SKeyi Gui public short test03(short[] x) { 30*055d4590SKeyi Gui x[0] = 5; 31*055d4590SKeyi Gui return x[1]; 32*055d4590SKeyi Gui } 33*055d4590SKeyi Gui test04(char[] x)34*055d4590SKeyi Gui public char test04(char[] x) { 35*055d4590SKeyi Gui x[0] = 5; 36*055d4590SKeyi Gui return x[1]; 37*055d4590SKeyi Gui } 38*055d4590SKeyi Gui test05(int[] x)39*055d4590SKeyi Gui public int test05(int[] x) { 40*055d4590SKeyi Gui x[0] = 5; 41*055d4590SKeyi Gui return x[1]; 42*055d4590SKeyi Gui } 43*055d4590SKeyi Gui test06(long[] x)44*055d4590SKeyi Gui public long test06(long[] x) { 45*055d4590SKeyi Gui x[0] = 5; 46*055d4590SKeyi Gui return x[1]; 47*055d4590SKeyi Gui } 48*055d4590SKeyi Gui test07(float[] x)49*055d4590SKeyi Gui public float test07(float[] x) { 50*055d4590SKeyi Gui x[0] = 2.0f; 51*055d4590SKeyi Gui return x[1]; 52*055d4590SKeyi Gui } 53*055d4590SKeyi Gui test08(double[] x)54*055d4590SKeyi Gui public double test08(double[] x) { 55*055d4590SKeyi Gui x[0] = 2.0; 56*055d4590SKeyi Gui return x[1]; 57*055d4590SKeyi Gui } 58*055d4590SKeyi Gui test09(Object[] x)59*055d4590SKeyi Gui public Object test09(Object[] x) { 60*055d4590SKeyi Gui x[0] = null; 61*055d4590SKeyi Gui return x[1]; 62*055d4590SKeyi Gui } 63*055d4590SKeyi Gui test10(Object[][] x)64*055d4590SKeyi Gui public static Object test10(Object[][] x) { 65*055d4590SKeyi Gui x[0][0] = null; 66*055d4590SKeyi Gui return x[1][2]; 67*055d4590SKeyi Gui } 68*055d4590SKeyi Gui test11(Object x)69*055d4590SKeyi Gui public static int test11(Object x) { 70*055d4590SKeyi Gui int[][][] arr = (int[][][]) x; 71*055d4590SKeyi Gui arr[0][0][0] = 123; 72*055d4590SKeyi Gui return arr[1][2][3]; 73*055d4590SKeyi Gui } 74*055d4590SKeyi Gui } 75