changeset 55001:7dd0430a6997

8224628: Note that type parameters are not visited by ElementScanners Reviewed-by: jjg
author darcy
date Wed, 22 May 2019 21:49:31 -0700
parents f11f2a4210b5
children da9840e2f7da
files src/java.compiler/share/classes/javax/lang/model/util/ElementScanner6.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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}