Skip to content

Commit

Permalink
Changed "file" to be "@nullable" since a null value could be provided…
Browse files Browse the repository at this point in the history
… to the method.
  • Loading branch information
SCWells72 authored and angelozerr committed Dec 12, 2024
1 parent a910ffd commit 7bc5f63
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.jetbrains.jsonSchema.extension.SchemaType;
import com.jetbrains.jsonSchema.impl.JsonSchemaVersion;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* Abstract base class for JSON schema file providers that are based on JSON schema files bundled in the plugin distribution.
Expand Down Expand Up @@ -64,7 +65,7 @@ public boolean isUserVisible() {
return false;
}

protected static void reloadPsi(@NotNull VirtualFile file) {
protected static void reloadPsi(@Nullable VirtualFile file) {
if (file != null) {
file.refresh(true, false, () -> file.refresh(false, false));
}
Expand Down

0 comments on commit 7bc5f63

Please sign in to comment.