src/share/classes/com/sun/tools/javac/util/AbstractLog.java

changeset 1358
fc123bdeddb8
parent 1074
04f983e3e825
child 2525
2eb010b6cb22
equal deleted inserted replaced
1357:c75be5bc5283 1358:fc123bdeddb8
1 /* 1 /*
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
130 report(d); 130 report(d);
131 } 131 }
132 132
133 /** Report a warning, unless suppressed by the -nowarn option or the 133 /** Report a warning, unless suppressed by the -nowarn option or the
134 * maximum number of warnings has been reached. 134 * maximum number of warnings has been reached.
135 * @param pos The source position at which to report the warning.
136 * @param key The key for the localized warning message. 135 * @param key The key for the localized warning message.
137 * @param args Fields of the warning message. 136 * @param args Fields of the warning message.
138 */ 137 */
139 public void warning(String key, Object ... args) { 138 public void warning(String key, Object ... args) {
140 report(diags.warning(source, null, key, args)); 139 report(diags.warning(source, null, key, args));

mercurial