Blort.java revision 2ad60cfc28e14ee8f0bb038720836a4696c478ad
1/*
2 * Copyright (C) 2007 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
17public class Blort
18{
19    public static Object zorch1(String s) {
20        return null;
21    }
22
23    public static void test1() {
24        try {
25            zorch1("x");
26        } catch (Exception ex) {
27            throw new RuntimeException(ex);
28        }
29    }
30
31    public static void zorch2(String s) {
32        // This space intentionally left blank.
33    }
34
35    public static void test2() {
36        try {
37            zorch2("x");
38        } catch (Exception ex) {
39            throw new RuntimeException(ex);
40        }
41    }
42
43    public static int zorch3(String s) {
44        return 0;
45    }
46
47    public static void test3() {
48        try {
49            zorch3("x");
50        } catch (Exception ex) {
51            throw new RuntimeException(ex);
52        }
53    }
54
55    public static Object zorch4(int x) {
56        return null;
57    }
58
59    public static void test4() {
60        try {
61            zorch4(1);
62        } catch (Exception ex) {
63            throw new RuntimeException(ex);
64        }
65    }
66
67    public static Object zorch5(int x) {
68        return null;
69    }
70
71    public static Object test5() {
72        try {
73            return zorch5(1);
74        } catch (Exception ex) {
75            throw new RuntimeException(ex);
76        }
77    }
78}
79