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/intellij/LithoPluginUtils.java

Reviewed By: astreet

Differential Revision: D65128727

fbshipit-source-id: f7f7f1902cd075405dc70f42f145fe924b64eb5d
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Oct 29, 2024
1 parent 83be0b3 commit 409f9d5
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.intellij;

import com.facebook.infer.annotation.Nullsafe;
import com.facebook.litho.annotations.Event;
import com.facebook.litho.annotations.LayoutSpec;
import com.facebook.litho.annotations.MountSpec;
Expand Down Expand Up @@ -53,6 +54,7 @@
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.Nullable;

@Nullsafe(Nullsafe.Mode.LOCAL)
public class LithoPluginUtils {
private static final NotificationGroup NOTIFICATION_GROUP =
NotificationGroup.balloonGroup("Litho");
Expand Down Expand Up @@ -169,6 +171,7 @@ public static boolean isEvent(PsiClass psiClass) {
@Contract("null -> null")
public static String getLithoComponentNameFromSpec(@Nullable String specName) {
if (isSpecName(specName)) {
// NULLSAFE_FIXME[Nullable Dereference]
return specName.substring(0, specName.length() - SPEC_SUFFIX.length());
}
return null;
Expand Down

0 comments on commit 409f9d5

Please sign in to comment.