equal
deleted
inserted
replaced
44 * deletion without notice.</b> |
44 * deletion without notice.</b> |
45 */ |
45 */ |
46 public class ParserFactory { |
46 public class ParserFactory { |
47 |
47 |
48 /** The context key for the parser factory. */ |
48 /** The context key for the parser factory. */ |
49 protected static final Context.Key<ParserFactory> parserFactoryKey = new Context.Key<ParserFactory>(); |
49 protected static final Context.Key<ParserFactory> parserFactoryKey = new Context.Key<>(); |
50 |
50 |
51 public static ParserFactory instance(Context context) { |
51 public static ParserFactory instance(Context context) { |
52 ParserFactory instance = context.get(parserFactoryKey); |
52 ParserFactory instance = context.get(parserFactoryKey); |
53 if (instance == null) { |
53 if (instance == null) { |
54 instance = new ParserFactory(context); |
54 instance = new ParserFactory(context); |