From 23b034eda3d38589e631cfe6a0162b089fa9f76d Mon Sep 17 00:00:00 2001 From: Sergey Simonchik Date: Wed, 21 Oct 2020 14:17:17 +0300 Subject: [PATCH] json: cleanup GitOrigin-RevId: 382b32f1cdaea834fa0f8668e10dc01cc5b99f11 --- json/src/com/intellij/json/JsonUtil.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/json/src/com/intellij/json/JsonUtil.java b/json/src/com/intellij/json/JsonUtil.java index e07f9bea70e6..f260e0413593 100644 --- a/json/src/com/intellij/json/JsonUtil.java +++ b/json/src/com/intellij/json/JsonUtil.java @@ -73,9 +73,8 @@ public final class JsonUtil { return -1; } - @Contract(value = "null -> null") - @Nullable - public static JsonObject getTopLevelObject(@Nullable JsonFile jsonFile) { + @Contract("null -> null") + public static @Nullable JsonObject getTopLevelObject(@Nullable JsonFile jsonFile) { return jsonFile != null ? ObjectUtils.tryCast(jsonFile.getTopLevelValue(), JsonObject.class) : null; }