src/share/classes/com/sun/tools/apt/util/Bark.java

changeset 893
8f0dcb9499db
parent 581
f2fdd52e4e87
     1.1 --- a/src/share/classes/com/sun/tools/apt/util/Bark.java	Thu Feb 24 08:40:49 2011 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/apt/util/Bark.java	Fri Feb 25 12:09:33 2011 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -48,15 +48,15 @@
    1.11       * Preregisters factories to create and use a Bark object for use as
    1.12       * both a Log and a Bark.
    1.13       */
    1.14 -    public static void preRegister(final Context context) {
    1.15 +    public static void preRegister(Context context) {
    1.16          context.put(barkKey, new Context.Factory<Bark>() {
    1.17 -            public Bark make() {
    1.18 -                return new Bark(context);
    1.19 +            public Bark make(Context c) {
    1.20 +                return new Bark(c);
    1.21              }
    1.22          });
    1.23          context.put(Log.logKey, new Context.Factory<Log>() {
    1.24 -            public Log make() {
    1.25 -                return Bark.instance(context);
    1.26 +            public Log make(Context c) {
    1.27 +                return Bark.instance(c);
    1.28              }
    1.29          });
    1.30      }

mercurial