| // Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| package com.example; |
| import java.util.*; |
| import org.jetbrains.annotations.Nullable; |
| import org.jetbrains.annotations.NotNull; |
| |
| // GenericNullability: GenericNullability.nonnull |
| // Generics: Generics.oneParam |
| // Inheritance: Inheritance.extendsGenericUnspecialized |
| // IsArray: IsArray.yes |
| // Member: Member.method |
| // MemberGenerics: MemberGenerics.twoParams |
| // MemberModifier: MemberModifier.throws |
| // MemberName: MemberName.getFoo |
| // MemberNullability: MemberNullability.nonnull |
| // MemberType: MemberType.list |
| // NestedKind: NestedKind.record |
| // ParamCount: ParamCount.one |
| // TopLevelKind: TopLevelKind.class_ |
| // TopLevelModifier: TopLevelModifier.none |
| public class TestClass078<@NotNull T> extends GenericParent { |
| @Override |
| public void genericParentMethod(Object t) {} |
| public <@NotNull S, @NotNull V> @NotNull List<@NotNull S>[] getFoo(@NotNull List<@NotNull S>[] p1) throws Exception { return null; } |
| public static record NestedRecord(int x) {} |
| |
| } |