package org.codelibs.elasticsearch.util;

import java.io.IOException;
import java.io.InputStream;

public final class IOUtils {
    private IOUtils() {
    }

    public static void closeQuietly(final InputStream is) {
        if (is != null) {
            try {
                is.close();
            } catch (final IOException e) {
            }
        }
    }
}

package org.codelibs.elasticsearch.util;

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

public class IOUtils {
    private IOUtils() {
    }

    public static void closeQuietly(final Closeable closeable) {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (final IOException e) {
            }
        }
    }
}

replace with Closeable.