diff options
| author | Pete Gillin <peteg@google.com> | 2018-10-24 17:37:43 +0100 |
|---|---|---|
| committer | Pete Gillin <peteg@google.com> | 2018-10-24 17:50:32 +0100 |
| commit | d1eec25d5434d9ed51b2c5fb61c61769bd7759cc (patch) | |
| tree | 16fe56f3ca8376b82e7c76824dc0aabca34e310e /ojluni/annotations/sdk/nullability/java/io/ByteArrayOutputStream.annotated.java | |
| parent | 681dd03fac3b95565018d4bd8141521d216965a5 (diff) | |
Add nullability annotations to some java.io and nio classes.
Bug: 64930165
Test: treehugger
Change-Id: Id0c7ed1c514d93c71e0474e2bcf21a34954215c8
Diffstat (limited to 'ojluni/annotations/sdk/nullability/java/io/ByteArrayOutputStream.annotated.java')
| -rw-r--r-- | ojluni/annotations/sdk/nullability/java/io/ByteArrayOutputStream.annotated.java | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ojluni/annotations/sdk/nullability/java/io/ByteArrayOutputStream.annotated.java b/ojluni/annotations/sdk/nullability/java/io/ByteArrayOutputStream.annotated.java new file mode 100644 index 0000000000..3fdca119fd --- /dev/null +++ b/ojluni/annotations/sdk/nullability/java/io/ByteArrayOutputStream.annotated.java @@ -0,0 +1,61 @@ +/* + * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + + +package java.io; + + +@SuppressWarnings({"unchecked", "deprecation", "all"}) +public class ByteArrayOutputStream extends java.io.OutputStream { + +public ByteArrayOutputStream() { throw new RuntimeException("Stub!"); } + +public ByteArrayOutputStream(int size) { throw new RuntimeException("Stub!"); } + +public synchronized void write(int b) { throw new RuntimeException("Stub!"); } + +public synchronized void write(byte @libcore.util.NonNull [] b, int off, int len) { throw new RuntimeException("Stub!"); } + +public synchronized void writeTo(@libcore.util.NonNull java.io.OutputStream out) throws java.io.IOException { throw new RuntimeException("Stub!"); } + +public synchronized void reset() { throw new RuntimeException("Stub!"); } + +public synchronized byte @libcore.util.NonNull [] toByteArray() { throw new RuntimeException("Stub!"); } + +public synchronized int size() { throw new RuntimeException("Stub!"); } + +@libcore.util.NonNull public synchronized java.lang.String toString() { throw new RuntimeException("Stub!"); } + +@libcore.util.NonNull public synchronized java.lang.String toString(@libcore.util.NonNull java.lang.String charsetName) throws java.io.UnsupportedEncodingException { throw new RuntimeException("Stub!"); } + +@Deprecated +@libcore.util.NonNull public synchronized java.lang.String toString(int hibyte) { throw new RuntimeException("Stub!"); } + +public void close() throws java.io.IOException { throw new RuntimeException("Stub!"); } + +protected byte @libcore.util.NonNull [] buf; + +protected int count; +} |
