OpenJDK / amber / amber
changeset 44179:4fa9641810db
8176266: Make visitUnknown specification more explicit
Reviewed-by: jlahoda
author | darcy |
---|---|
date | Tue, 07 Mar 2017 08:43:29 -0800 |
parents | 336ca6c49e10 |
children | 207e05e0d9ad |
files | langtools/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor6.java langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor6.java langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/langtools/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java Mon Mar 06 15:44:37 2017 -0800 +++ b/langtools/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java Tue Mar 07 08:43:29 2017 -0800 @@ -251,7 +251,7 @@ * @param p a visitor-specified parameter * @return a visitor-specified result * @throws UnknownDirectiveException a visitor implementation may optionally throw this exception - * @implSpec This implementation throws {@code UnknownDirectiveException}. + * @implSpec This implementation throws {@code new UnknownDirectiveException(d, p)}. */ default R visitUnknown(Directive d, P p) { throw new UnknownDirectiveException(d, p);
--- a/langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor6.java Mon Mar 06 15:44:37 2017 -0800 +++ b/langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor6.java Tue Mar 07 08:43:29 2017 -0800 @@ -106,7 +106,7 @@ * * @implSpec The default implementation of this method in {@code * AbstractAnnotationValueVisitor6} will always throw {@code - * UnknownAnnotationValueException}. This behavior is not + * new UnknownAnnotationValueException(av, p)}. This behavior is not * required of a subclass. * * @param av {@inheritDoc}
--- a/langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor6.java Mon Mar 06 15:44:37 2017 -0800 +++ b/langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor6.java Tue Mar 07 08:43:29 2017 -0800 @@ -111,7 +111,7 @@ * * @implSpec The default implementation of this method in * {@code AbstractElementVisitor6} will always throw - * {@code UnknownElementException}. + * {@code new UnknownElementException(e, p)}. * This behavior is not required of a subclass. * * @param e {@inheritDoc}
--- a/langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java Mon Mar 06 15:44:37 2017 -0800 +++ b/langtools/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java Tue Mar 07 08:43:29 2017 -0800 @@ -142,7 +142,7 @@ * * @implSpec The default implementation of this method in {@code * AbstractTypeVisitor6} will always throw {@code - * UnknownTypeException}. This behavior is not required of a + * new UnknownTypeException(t, p)}. This behavior is not required of a * subclass. * * @param t {@inheritDoc}