mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
json: cleanup
GitOrigin-RevId: 382b32f1cdaea834fa0f8668e10dc01cc5b99f11
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ceaa6c8e32
commit
23b034eda3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user