langtools/src/share/classes/com/sun/tools/javac/tree/DocTreeMaker.java
changeset 22163 3651128c74eb
parent 14541 36f9d11fc9aa
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
    46  *  deletion without notice.</b>
    46  *  deletion without notice.</b>
    47  */
    47  */
    48 public class DocTreeMaker {
    48 public class DocTreeMaker {
    49 
    49 
    50     /** The context key for the tree factory. */
    50     /** The context key for the tree factory. */
    51     protected static final Context.Key<DocTreeMaker> treeMakerKey =
    51     protected static final Context.Key<DocTreeMaker> treeMakerKey = new Context.Key<>();
    52         new Context.Key<DocTreeMaker>();
       
    53 
    52 
    54     /** Get the TreeMaker instance. */
    53     /** Get the TreeMaker instance. */
    55     public static DocTreeMaker instance(Context context) {
    54     public static DocTreeMaker instance(Context context) {
    56         DocTreeMaker instance = context.get(treeMakerKey);
    55         DocTreeMaker instance = context.get(treeMakerKey);
    57         if (instance == null)
    56         if (instance == null)