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

com.sun.tools.javac.code.Closeables Maven / Gradle / Ivy

There is a newer version: 21.0.0
Show newest version
package com.sun.tools.javac.code;

import com.sun.tools.javac.util.*;
import java.io.Closeable;

/**
 *
 * @author frgaal
 */
public class Closeables {

    public static final Context.Key closeablesKey = new Context.Key<>();

    public static Closeables instance(Context context) {
        Closeables instance = context.get(closeablesKey);
        if (instance == null)
            instance = new Closeables(context);
        return instance;
    }

    public List closeables = List.nil();

    public Closeables(Context context) {
        context.put(closeablesKey, this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy