1*2167191dSAndroid Build Coastguard Worker /* 2*2167191dSAndroid Build Coastguard Worker * Copyright 2020 The JSpecify Authors. 3*2167191dSAndroid Build Coastguard Worker * 4*2167191dSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*2167191dSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*2167191dSAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*2167191dSAndroid Build Coastguard Worker * 8*2167191dSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*2167191dSAndroid Build Coastguard Worker * 10*2167191dSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*2167191dSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*2167191dSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*2167191dSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*2167191dSAndroid Build Coastguard Worker * limitations under the License. 15*2167191dSAndroid Build Coastguard Worker */ 16*2167191dSAndroid Build Coastguard Worker import org.jspecify.annotations.Nullable; 17*2167191dSAndroid Build Coastguard Worker 18*2167191dSAndroid Build Coastguard Worker // Covered by 19*2167191dSAndroid Build Coastguard Worker // conformance-tests/src/assertions/java/org/jspecify/conformance/tests/irrelevantannotations/notnullmarked/AnnotatedWildcards.java 20*2167191dSAndroid Build Coastguard Worker class NotNullMarkedAnnotatedWildcard { 21*2167191dSAndroid Build Coastguard Worker interface Lib<T extends @Nullable Object> {} 22*2167191dSAndroid Build Coastguard Worker foo( Lib<@Nullable ?> x1, Lib<@Nullable ? extends Object> x2, Lib<@Nullable ? super Object> x3, Lib<@Nullable ? extends @Nullable Object> x4, Lib<@Nullable ? super @Nullable Object> x5)23*2167191dSAndroid Build Coastguard Worker void foo( 24*2167191dSAndroid Build Coastguard Worker // jspecify_unrecognized_location 25*2167191dSAndroid Build Coastguard Worker Lib<@Nullable ?> x1, 26*2167191dSAndroid Build Coastguard Worker 27*2167191dSAndroid Build Coastguard Worker // jspecify_unrecognized_location 28*2167191dSAndroid Build Coastguard Worker Lib<@Nullable ? extends Object> x2, 29*2167191dSAndroid Build Coastguard Worker 30*2167191dSAndroid Build Coastguard Worker // jspecify_unrecognized_location 31*2167191dSAndroid Build Coastguard Worker Lib<@Nullable ? super Object> x3, 32*2167191dSAndroid Build Coastguard Worker 33*2167191dSAndroid Build Coastguard Worker // jspecify_unrecognized_location 34*2167191dSAndroid Build Coastguard Worker Lib<@Nullable ? extends @Nullable Object> x4, 35*2167191dSAndroid Build Coastguard Worker 36*2167191dSAndroid Build Coastguard Worker // jspecify_unrecognized_location 37*2167191dSAndroid Build Coastguard Worker Lib<@Nullable ? super @Nullable Object> x5) {} 38*2167191dSAndroid Build Coastguard Worker } 39