8224628: Note that type parameters are not visited by ElementScanners
authordarcy
Wed, 22 May 2019 21:49:31 -0700
changeset 55001 7dd0430a6997
parent 55000 f11f2a4210b5
child 55002 da9840e2f7da
8224628: Note that type parameters are not visited by ElementScanners Reviewed-by: jjg
src/java.compiler/share/classes/javax/lang/model/util/ElementScanner6.java
--- a/src/java.compiler/share/classes/javax/lang/model/util/ElementScanner6.java	Wed May 22 21:45:47 2019 -0700
+++ b/src/java.compiler/share/classes/javax/lang/model/util/ElementScanner6.java	Wed May 22 21:49:31 2019 -0700
@@ -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 @@
      * {@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 @@
      * {@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}