• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 The JSpecify Authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 import org.jspecify.annotations.NullMarked;
17 import org.jspecify.annotations.Nullable;
18 import org.jspecify.annotations.NullnessUnspecified;
19 
20 @NullMarked
21 class NullLiteralToTypeVariableUnionNull<
22     Never1T,
23     ChildOfNever1T extends Never1T,
24     UnspecChildOfNever1T extends @NullnessUnspecified Never1T,
25     NullChildOfNever1T extends @Nullable Never1T,
26     //
27     Never2T extends Object,
28     ChildOfNever2T extends Never2T,
29     UnspecChildOfNever2T extends @NullnessUnspecified Never2T,
30     NullChildOfNever2T extends @Nullable Never2T,
31     //
32     UnspecT extends @NullnessUnspecified Object,
33     ChildOfUnspecT extends UnspecT,
34     UnspecChildOfUnspecT extends @NullnessUnspecified UnspecT,
35     NullChildOfUnspecT extends @Nullable UnspecT,
36     //
37     ParametricT extends @Nullable Object,
38     ChildOfParametricT extends ParametricT,
39     UnspecChildOfParametricT extends @NullnessUnspecified ParametricT,
40     NullChildOfParametricT extends @Nullable ParametricT,
41     //
42     UnusedT> {
x0()43   @Nullable Never1T x0() {
44     return null;
45   }
46 
x1()47   @Nullable ChildOfNever1T x1() {
48     return null;
49   }
50 
x2()51   @Nullable UnspecChildOfNever1T x2() {
52     return null;
53   }
54 
x3()55   @Nullable NullChildOfNever1T x3() {
56     return null;
57   }
58 
x4()59   @Nullable Never2T x4() {
60     return null;
61   }
62 
x5()63   @Nullable ChildOfNever2T x5() {
64     return null;
65   }
66 
x6()67   @Nullable UnspecChildOfNever2T x6() {
68     return null;
69   }
70 
x7()71   @Nullable NullChildOfNever2T x7() {
72     return null;
73   }
74 
x8()75   @Nullable UnspecT x8() {
76     return null;
77   }
78 
x9()79   @Nullable ChildOfUnspecT x9() {
80     return null;
81   }
82 
x10()83   @Nullable UnspecChildOfUnspecT x10() {
84     return null;
85   }
86 
x11()87   @Nullable NullChildOfUnspecT x11() {
88     return null;
89   }
90 
x12()91   @Nullable ParametricT x12() {
92     return null;
93   }
94 
x13()95   @Nullable ChildOfParametricT x13() {
96     return null;
97   }
98 
x14()99   @Nullable UnspecChildOfParametricT x14() {
100     return null;
101   }
102 
x15()103   @Nullable NullChildOfParametricT x15() {
104     return null;
105   }
106 }
107