| // 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.none | |
| // Inheritance: Inheritance.implements_ | |
| // IsArray: IsArray.no | |
| // Member: Member.method | |
| // MemberGenerics: MemberGenerics.upperBound | |
| // MemberModifier: MemberModifier.throws | |
| // MemberName: MemberName.getFoo | |
| // MemberNullability: MemberNullability.nullable | |
| // MemberType: MemberType.memberTypeParam | |
| // NestedKind: NestedKind.innerClass | |
| // ParamCount: ParamCount.two | |
| // TopLevelKind: TopLevelKind.enum_ | |
| // TopLevelModifier: TopLevelModifier.none | |
| public enum TestClass003 implements OtherInterface { | |
| VALUE1, VALUE2; | |
| @Override | |
| public void otherInterfaceMethod() {} | |
| public <@NotNull S extends Number> @Nullable S getFoo(@Nullable S p1, int p2) throws Exception { return null; } | |
| public class Nested {} | |
| } |