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

com.vzurauskas.nereides.jackson.Unchecked Maven / Gradle / Ivy

package com.vzurauskas.nereides.jackson;

import java.io.IOException;
import java.io.UncheckedIOException;

final class Unchecked {
    private final Checked checked;

    Unchecked(Checked checked) {
        this.checked = checked;
    }

    // @checkstyle IllegalCatch (30 lines)
    T value() {
        try {
            return checked.value();
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy