mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8273157: Add convenience methods to Messager
Reviewed-by: jjg
This commit is contained in:
parent
9689f61520
commit
2f01a6f8b6
87 changed files with 359 additions and 354 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -38,7 +38,6 @@
|
|||
import java.util.*;
|
||||
import javax.annotation.processing.*;
|
||||
import javax.lang.model.element.*;
|
||||
import static javax.tools.Diagnostic.Kind.*;
|
||||
|
||||
@SupportedOptions("error")
|
||||
public class TestProcUseImplicitWarning extends JavacTestingAbstractProcessor {
|
||||
|
@ -52,7 +51,7 @@ public class TestProcUseImplicitWarning extends JavacTestingAbstractProcessor {
|
|||
if (round == 1) {
|
||||
boolean error = options.containsKey("error");
|
||||
if (error)
|
||||
messager.printMessage(ERROR, "error generated per option");
|
||||
messager.printError("error generated per option");
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue