Skip to content

Commit fb755f5

Browse files
Improved nullability annotations on ValueExpressionResolver; fixes gh-4094
1 parent 51745d7 commit fb755f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

micrometer-commons/src/main/java/io/micrometer/common/annotation/ValueExpressionResolver.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package io.micrometer.common.annotation;
1717

1818
import io.micrometer.common.KeyValue;
19+
import io.micrometer.common.lang.Nullable;
1920

2021
/**
2122
* Resolves the {@link KeyValue} value for the given parameter and the provided
@@ -33,6 +34,7 @@ public interface ValueExpressionResolver {
3334
* @param parameter parameter annotated with a {@link KeyValue} related annotation
3435
* @return the value of the {@link KeyValue}
3536
*/
36-
String resolve(String expression, Object parameter);
37+
@Nullable
38+
String resolve(String expression, @Nullable Object parameter);
3739

3840
}

0 commit comments

Comments
 (0)