From d37674ac5b517a06f7780bb86dc732aab6800108 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Tue, 30 Sep 2025 01:15:23 +0200 Subject: [PATCH] [core-api] CachedValueProvider: update Javadoc to mention Document as a valid dependency + minor cleanup GitOrigin-RevId: d34d64a24a07b1335167836e05585fc1946cc6cc --- .../src/com/intellij/psi/util/CachedValueProvider.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/core-api/src/com/intellij/psi/util/CachedValueProvider.java b/platform/core-api/src/com/intellij/psi/util/CachedValueProvider.java index 4bb8cfa04068..6c041f32aec1 100644 --- a/platform/core-api/src/com/intellij/psi/util/CachedValueProvider.java +++ b/platform/core-api/src/com/intellij/psi/util/CachedValueProvider.java @@ -62,15 +62,16 @@ public interface CachedValueProvider { * and to compare that to the state of the world when querying {@link CachedValue#getValue()}. *

* The state is remembered as a collection of {@code long} values representing some time stamps. - * Whenever changes occur, these stamps are incremented. + * Whenever changes to the dependencies occur, these stamps are incremented. *

* Dependencies can be the following: *

*

* If your cached value uses a document instance as an input, you should use that document as a dependency.