File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
core/src/main/java/com/google/errorprone/bugpatterns/nullness Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 3838import static com .sun .source .tree .Tree .Kind .PARAMETERIZED_TYPE ;
3939import static com .sun .tools .javac .parser .Tokens .TokenKind .DOT ;
4040import static java .lang .Boolean .TRUE ;
41+ import static java .util .Objects .requireNonNull ;
4142
4243import com .google .auto .value .AutoValue ;
4344import com .google .common .collect .ImmutableSet ;
@@ -260,6 +261,7 @@ static boolean hasExtraParameterForEnclosingInstance(MethodSymbol symbol) {
260261 return false ;
261262 }
262263 ClassSymbol constructedClass = enclosingClass (symbol );
264+ requireNonNull (constructedClass , symbol ::toString );
263265 return enclosingClass (constructedClass ) != null && !constructedClass .isStatic ();
264266 }
265267
You can’t perform that action at this time.
0 commit comments