All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin.io.CloseableKt Maven / Gradle / Ivy

package kotlin.io;

import java.io.Closeable;
import java.io.IOException;

public class CloseableKt {
    private CloseableKt() {
    }

    public static void closeFinally(Closeable self, Throwable t) {
        if (self == null)
            return;
        try {
            self.close();
        } catch (IOException e) {
            if (t != null)
                t.addSuppressed(e);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy