com.sun.tools.javac.code.Closeables Maven / Gradle / Ivy
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