[infer][java] remove the no-op model for Cursor.close()

Summary: The diff remove the no-op model for `Cursor.close()` by the frontend-based `Closeable` as resources mechanism where every call of the form `object.close()` removes the file attribute on `object` when `object` is of type `Closeable`.

Reviewed By: sblackshear

Differential Revision: D4519386

fbshipit-source-id: 83633d4
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent 578baf319b
commit bf17932812

@ -12,7 +12,4 @@ package android.database;
import java.io.Closeable;
public interface Cursor extends Closeable {
public void close();
}
public interface Cursor extends Closeable {}

@ -12,6 +12,8 @@ package android.database;
import com.facebook.infer.builtins.InferUndefined;
import com.facebook.infer.builtins.InferBuiltins;
import java.io.IOException;
public class CursorWrapper implements Cursor {
protected final Cursor mCursor;
@ -20,7 +22,9 @@ public class CursorWrapper implements Cursor {
}
public void close() {
mCursor.close();
try {
mCursor.close();
} catch (IOException e) {}
}
}

Loading…
Cancel
Save