Class LeakDetectingFileSystem

java.lang.Object
java.nio.file.FileSystem
com.github.mizosoft.methanol.testing.file.LeakDetectingFileSystem
All Implemented Interfaces:
ForwardingObject<FileSystem>, Closeable, AutoCloseable

public final class LeakDetectingFileSystem extends FileSystem
A ForwardingFileSystem that detects unclosed resources when closed. Tracked resources are instances of FileChannel, AsynchronousFileChannel and DirectoryStream. An IllegalStateException is thrown when at least one of such resources isn't closed prior to closing this file system.