equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
84 * @author Robert Field |
84 * @author Robert Field |
85 * @author Neal Gafter (rewrite) |
85 * @author Neal Gafter (rewrite) |
86 * @author Scott Seligman (generics, enums, annotations) |
86 * @author Scott Seligman (generics, enums, annotations) |
87 */ |
87 */ |
88 |
88 |
89 @Deprecated |
89 @Deprecated(since="9", forRemoval=true) |
|
90 @SuppressWarnings("removal") |
90 public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc { |
91 public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc { |
91 |
92 |
92 public final ClassType type; // protected->public for debugging |
93 public final ClassType type; // protected->public for debugging |
93 public final ClassSymbol tsym; |
94 public final ClassSymbol tsym; |
94 |
95 |
1089 * |
1090 * |
1090 * @deprecated Import declarations are implementation details that |
1091 * @deprecated Import declarations are implementation details that |
1091 * should not be exposed here. In addition, not all imported |
1092 * should not be exposed here. In addition, not all imported |
1092 * classes are imported through single-type-import declarations. |
1093 * classes are imported through single-type-import declarations. |
1093 */ |
1094 */ |
1094 @Deprecated |
1095 @Deprecated(since="9", forRemoval=true) |
1095 public ClassDoc[] importedClasses() { |
1096 public ClassDoc[] importedClasses() { |
1096 // information is not available for binary classfiles |
1097 // information is not available for binary classfiles |
1097 if (tsym.sourcefile == null) return new ClassDoc[0]; |
1098 if (tsym.sourcefile == null) return new ClassDoc[0]; |
1098 |
1099 |
1099 ListBuffer<ClassDocImpl> importedClasses = new ListBuffer<>(); |
1100 ListBuffer<ClassDocImpl> importedClasses = new ListBuffer<>(); |
1127 * @deprecated Import declarations are implementation details that |
1128 * @deprecated Import declarations are implementation details that |
1128 * should not be exposed here. In addition, this method's |
1129 * should not be exposed here. In addition, this method's |
1129 * return type does not allow for all type-import-on-demand |
1130 * return type does not allow for all type-import-on-demand |
1130 * declarations to be returned. |
1131 * declarations to be returned. |
1131 */ |
1132 */ |
1132 @Deprecated |
1133 @Deprecated(since="9", forRemoval=true) |
1133 public PackageDoc[] importedPackages() { |
1134 public PackageDoc[] importedPackages() { |
1134 // information is not available for binary classfiles |
1135 // information is not available for binary classfiles |
1135 if (tsym.sourcefile == null) return new PackageDoc[0]; |
1136 if (tsym.sourcefile == null) return new PackageDoc[0]; |
1136 |
1137 |
1137 ListBuffer<PackageDocImpl> importedPackages = new ListBuffer<>(); |
1138 ListBuffer<PackageDocImpl> importedPackages = new ListBuffer<>(); |