equal
deleted
inserted
replaced
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) |