Skip to content

Commit

Permalink
Improved nullability annotations on ValueExpressionResolver; fixes mi…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Dec 28, 2023
1 parent 51745d7 commit fb755f5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package io.micrometer.common.annotation;

import io.micrometer.common.KeyValue;
import io.micrometer.common.lang.Nullable;

/**
* Resolves the {@link KeyValue} value for the given parameter and the provided
Expand All @@ -33,6 +34,7 @@ public interface ValueExpressionResolver {
* @param parameter parameter annotated with a {@link KeyValue} related annotation
* @return the value of the {@link KeyValue}
*/
String resolve(String expression, Object parameter);
@Nullable
String resolve(String expression, @Nullable Object parameter);

}

0 comments on commit fb755f5

Please sign in to comment.