package pstore;

public class PStoreFile {
  final int fd;

  public PStoreFile(String filename, PStoreFileMode mode) {
    fd = open(filename, mode.value);
  }

  public void close() {
    close(fd);
  }

  private static native int open(String filename, int mode);
  private static native void close(int fd);
}

@@ -14,29 +14,77 @@
 e;%0A%0A
-public class PStoreFi
+import java.io.Closeable;%0A%0Apublic class PStoreFile implements Closeab
 le %7B

Make PStoreFile implement Closeable