8224628: Note that type parameters are not visited by ElementScanners

Reviewed-by: jjg
This commit is contained in:
Joe Darcy 2019-05-22 21:49:31 -07:00
parent f30500c679
commit c2dbf46d2e

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2019, 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
@ -180,6 +180,10 @@ public class ElementScanner6<R, P> extends AbstractElementVisitor6<R, P> {
* {@inheritDoc}
*
* @implSpec This implementation scans the enclosed elements.
* Note that type parameters are <em>not</em> scanned by this
* implementation since type parameters are not considered to be
* {@linkplain TypeElement#getEnclosedElements enclosed elements
* of a type}.
*
* @param e {@inheritDoc}
* @param p {@inheritDoc}
@ -211,6 +215,8 @@ public class ElementScanner6<R, P> extends AbstractElementVisitor6<R, P> {
* {@inheritDoc}
*
* @implSpec This implementation scans the parameters.
* Note that type parameters are <em>not</em> scanned by this
* implementation.
*
* @param e {@inheritDoc}
* @param p {@inheritDoc}