Summary: @public Modeling bypasses the Closeable as resource assumption for `java.io.StringReader`, `java.io.ByteArrayInputStream` and `java.io.ByteArrayOutputStream`. Test Plan: Infer CI. Some resource leak should also disappear on Instagram.master
parent
c1db76f9a4
commit
11712caea9
@ -0,0 +1,11 @@
|
|||||||
|
package java.io;
|
||||||
|
|
||||||
|
public class ByteArrayInputStream extends InputStream implements Closeable {
|
||||||
|
|
||||||
|
public ByteArrayInputStream(byte[] buf) {}
|
||||||
|
|
||||||
|
public ByteArrayInputStream(byte[] buf, int offset, int length) {}
|
||||||
|
|
||||||
|
public void close() {}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package java.io;
|
||||||
|
|
||||||
|
public class ByteArrayOutputStream extends OutputStream implements Closeable {
|
||||||
|
|
||||||
|
public ByteArrayOutputStream() {}
|
||||||
|
|
||||||
|
public ByteArrayOutputStream(int size) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void write(int b) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void write(byte[] b, int off, int len) {}
|
||||||
|
|
||||||
|
public void close() {}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
package java.io;
|
||||||
|
|
||||||
|
public class StringReader implements Closeable {
|
||||||
|
|
||||||
|
public StringReader(String s) {}
|
||||||
|
|
||||||
|
public void close() {}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue