Skip to content

Commit

Permalink
fbandroid/libraries/components/litho-intellij-plugin/src/main/java/co…
Browse files Browse the repository at this point in the history
…m/facebook/litho/specmodels/processor/PsiTypeVariablesExtractor.java

Reviewed By: zielinskimz

Differential Revision: D65129589

fbshipit-source-id: e0109265e706b066ca2edf25d15a47453b65b826
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Oct 29, 2024
1 parent 01c9c7c commit ea9da31
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.facebook.litho.specmodels.processor;

import com.facebook.infer.annotation.Nullsafe;
import com.facebook.litho.specmodels.internal.ImmutableList;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiClassType;
Expand All @@ -26,6 +27,7 @@
import java.util.ArrayList;
import java.util.List;

@Nullsafe(Nullsafe.Mode.LOCAL)
public class PsiTypeVariablesExtractor {

public static ImmutableList<TypeVariableName> getTypeVariables(PsiClass psiClass) {
Expand All @@ -42,6 +44,7 @@ public static ImmutableList<TypeVariableName> getTypeVariables(PsiClass psiClass
}

final TypeVariableName typeVariable =
// NULLSAFE_FIXME[Parameter Not Nullable]
TypeVariableName.get(psiTypeParameter.getName(), boundsTypeNames);
typeVariables.add(typeVariable);
}
Expand Down

0 comments on commit ea9da31

Please sign in to comment.