1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation. Oracle designates this
9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
11 *
12 * This code is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 */
26
27
28 package java.lang;
29
30
31 @SuppressWarnings({"unchecked", "deprecation", "all"})
32 public class Object {
33
Object()34 public Object() { throw new RuntimeException("Stub!"); }
35
getClass()36 @libcore.util.NonNull public final java.lang.Class<?> getClass() { throw new RuntimeException("Stub!"); }
37
hashCode()38 public int hashCode() { throw new RuntimeException("Stub!"); }
39
equals(@ibcore.util.Nullable java.lang.Object obj)40 public boolean equals(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("Stub!"); }
41
clone()42 @libcore.util.NonNull protected java.lang.Object clone() throws java.lang.CloneNotSupportedException { throw new RuntimeException("Stub!"); }
43
toString()44 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
45
notify()46 public final native void notify();
47
notifyAll()48 public final native void notifyAll();
49
wait(long timeout)50 public final void wait(long timeout) throws java.lang.InterruptedException { throw new RuntimeException("Stub!"); }
51
wait(long timeout, int nanos)52 public final native void wait(long timeout, int nanos) throws java.lang.InterruptedException;
53
wait()54 public final void wait() throws java.lang.InterruptedException { throw new RuntimeException("Stub!"); }
55
finalize()56 protected void finalize() throws java.lang.Throwable { throw new RuntimeException("Stub!"); }
57 }
58