@@ -167,7 +167,7 @@ default boolean isJavaLangObject() {
167
167
* {@link Class#getInterfaces()} and as such, only returns the interfaces directly implemented
168
168
* or extended by this type.
169
169
*/
170
- List <ResolvedJavaType > getInterfaces ();
170
+ List <? extends ResolvedJavaType > getInterfaces ();
171
171
172
172
/**
173
173
* Gets the single implementor of this type. Calling this method on a non-interface type causes
@@ -285,14 +285,14 @@ default ResolvedJavaMethod resolveConcreteMethod(ResolvedJavaMethod method, Reso
285
285
* type are included in the result with superclass fields coming before subclass fields
286
286
* @return a list of non-static fields
287
287
*/
288
- List <ResolvedJavaField > getInstanceFields (boolean includeSuperclasses );
288
+ List <? extends ResolvedJavaField > getInstanceFields (boolean includeSuperclasses );
289
289
290
290
/**
291
291
* Returns the static fields of this class, including {@linkplain ResolvedJavaField#isInternal()
292
292
* internal} fields. A zero-length array is returned for array and primitive types. The order of
293
293
* fields returned by this method is the same as {@link Class#getDeclaredFields}.
294
294
*/
295
- List <ResolvedJavaField > getStaticFields ();
295
+ List <? extends ResolvedJavaField > getStaticFields ();
296
296
297
297
/**
298
298
* Returns the instance field of this class (or one of its super classes) at the given offset,
@@ -328,15 +328,15 @@ default ResolvedJavaMethod resolveConcreteMethod(ResolvedJavaMethod method, Reso
328
328
* similar to {@link Class#getDeclaredConstructors()} in terms of returned constructors. Calling
329
329
* this method forces this type to be {@link #link linked}.
330
330
*/
331
- List <ResolvedJavaMethod > getDeclaredConstructors ();
331
+ List <? extends ResolvedJavaMethod > getDeclaredConstructors ();
332
332
333
333
/**
334
334
* Returns a list reflecting all the constructors declared by this type. This method is
335
335
* similar to {@link Class#getDeclaredConstructors()} in terms of returned constructors.
336
336
*
337
337
* @param forceLink if {@code true}, forces this type to be {@link #link linked}
338
338
*/
339
- default List <ResolvedJavaMethod > getDeclaredConstructors (boolean forceLink ) {
339
+ default List <? extends ResolvedJavaMethod > getDeclaredConstructors (boolean forceLink ) {
340
340
throw new UnsupportedOperationException ();
341
341
}
342
342
@@ -345,15 +345,15 @@ default List<ResolvedJavaMethod> getDeclaredConstructors(boolean forceLink) {
345
345
* {@link Class#getDeclaredMethods()} in terms of returned methods. Calling this method forces
346
346
* this type to be {@link #link linked}.
347
347
*/
348
- List <ResolvedJavaMethod > getDeclaredMethods ();
348
+ List <? extends ResolvedJavaMethod > getDeclaredMethods ();
349
349
350
350
/**
351
351
* Returns a list reflecting all the methods declared by this type. This method is similar to
352
352
* {@link Class#getDeclaredMethods()} in terms of returned methods.
353
353
*
354
354
* @param forceLink if {@code true}, forces this type to be {@link #link linked}
355
355
*/
356
- default List <ResolvedJavaMethod > getDeclaredMethods (boolean forceLink ) {
356
+ default List <? extends ResolvedJavaMethod > getDeclaredMethods (boolean forceLink ) {
357
357
throw new UnsupportedOperationException ();
358
358
}
359
359
@@ -366,7 +366,7 @@ default List<ResolvedJavaMethod> getDeclaredMethods(boolean forceLink) {
366
366
*
367
367
* @param forceLink if {@code true}, forces this type to be {@link #link linked}
368
368
*/
369
- List <ResolvedJavaMethod > getAllMethods (boolean forceLink );
369
+ List <? extends ResolvedJavaMethod > getAllMethods (boolean forceLink );
370
370
371
371
/**
372
372
* Returns the {@code <clinit>} method for this class if there is one.
0 commit comments