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 
17 public class Blort
18 {
testInstance1()19     public synchronized void testInstance1() {
20         // This space intentionally left blank.
21     }
22 
testInstance2(Object x)23     public synchronized void testInstance2(Object x) {
24         x.hashCode();
25     }
26 
testInstance3(int x, int y, int z)27     public synchronized int testInstance3(int x, int y, int z) {
28         if (x == 1) {
29             return 1;
30         } else {
31             return 2;
32         }
33     }
34 
testInstance4(long x)35     public synchronized long testInstance4(long x) {
36         if (x == 1) {
37             return 1;
38         } else {
39             return 2;
40         }
41     }
42 
testInstance5()43     public synchronized void testInstance5() {
44         testInstance5();
45     }
46 
testStatic1()47     public static synchronized void testStatic1() {
48         // This space intentionally left blank.
49     }
50 
testStatic2(Object x)51     public static synchronized void testStatic2(Object x) {
52         x.hashCode();
53     }
54 
testStatic3(int x, int y, int z)55     public static synchronized int testStatic3(int x, int y, int z) {
56         if (x == 1) {
57             return 1;
58         } else {
59             return 2;
60         }
61     }
62 
testStatic4(long x)63     public static synchronized long testStatic4(long x) {
64         if (x == 1) {
65             return 1;
66         } else {
67             return 2;
68         }
69     }
70 
testStatic5()71     public static synchronized void testStatic5() {
72         testStatic5();
73     }
74 }
75