getDefaultValueFromAnnotation

fun getDefaultValueFromAnnotation(simpleName: String, qualifiedName: String?, annotationArguments: List<Pair<String, Any?>>): String?(source)

Extracts the default-value text from an annotation if it matches a recognized default-value annotation (e.g., @JsonProperty(defaultValue = "...")).

Simple annotation names are matched case-insensitively; fully qualified names are matched case-sensitively (exact match).

Return

The default value if found, or null if the annotation is not recognized or contains no matching default-value parameter

Parameters

simpleName

The simple name of the annotation (e.g., "JsonProperty")

qualifiedName

The fully qualified name of the annotation (e.g., "com.fasterxml.jackson.annotation.JsonProperty"), or null if unavailable

annotationArguments

List of key-value pairs representing the annotation's parameters