37 * If you write code that depends on this, you do so at your own risk. |
37 * If you write code that depends on this, you do so at your own risk. |
38 * This code and its internal interfaces are subject to change or |
38 * This code and its internal interfaces are subject to change or |
39 * deletion without notice.</b> |
39 * deletion without notice.</b> |
40 */ |
40 */ |
41 public class Warner { |
41 public class Warner { |
42 public static final Warner noWarnings = new Warner(); |
|
43 |
42 |
44 private DiagnosticPosition pos = null; |
43 private DiagnosticPosition pos = null; |
45 protected boolean warned = false; |
44 protected boolean warned = false; |
46 private EnumSet<LintCategory> nonSilentLintSet = EnumSet.noneOf(LintCategory.class); |
45 private EnumSet<LintCategory> nonSilentLintSet = EnumSet.noneOf(LintCategory.class); |
47 private EnumSet<LintCategory> silentLintSet = EnumSet.noneOf(LintCategory.class); |
46 private EnumSet<LintCategory> silentLintSet = EnumSet.noneOf(LintCategory.class); |