Reviewed By: dulmarod Differential Revision: D3929501 fbshipit-source-id: 450f5bdmaster
parent
168c613ac9
commit
2e2e9c89d6
@ -1,26 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2013 - present Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.squareup.okhttp.internal;
|
|
||||||
|
|
||||||
import com.facebook.infer.builtins.InferUndefined;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
public class StrictLineReader {
|
|
||||||
|
|
||||||
public String readLine() throws IOException {
|
|
||||||
return InferUndefined.can_throw_ioexception_string();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int readInt() throws IOException {
|
|
||||||
return InferUndefined.can_throw_ioexception_int();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2013 - present Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.squareup.okhttp.internal;
|
|
||||||
|
|
||||||
import com.facebook.infer.builtins.InferCloseables;
|
|
||||||
|
|
||||||
import java.io.Closeable;
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
|
|
||||||
public class Util {
|
|
||||||
|
|
||||||
public static void closeQuietly(Closeable closeable) throws IOException {
|
|
||||||
InferCloseables.closeQuietly(closeable);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in new issue