| // 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.nullable |
| // Generics: Generics.twoParams |
| // Inheritance: Inheritance.extendsGenericUnspecialized |
| // IsArray: IsArray.yes |
| // Member: Member.method |
| // MemberGenerics: MemberGenerics.twoParams |
| // MemberModifier: MemberModifier.none |
| // MemberName: MemberName.setFoo |
| // MemberNullability: MemberNullability.nonnull |
| // MemberType: MemberType.customInterface |
| // NestedKind: NestedKind.enum_ |
| // ParamCount: ParamCount.two |
| // TopLevelKind: TopLevelKind.class_ |
| // TopLevelModifier: TopLevelModifier.final_ |
| public final class TestClass018<@Nullable T, @Nullable U> extends GenericParent { |
| @Override |
| public void genericParentMethod(Object t) {} |
| public <@Nullable S, @Nullable V> @NotNull CustomInterface<@Nullable S>[] setFoo(@NotNull CustomInterface<@Nullable S>[] p1, int p2) { return null; } |
| public enum NestedEnum { V1 } |
| |
| } |