Inspectopedia Help

Incorrect value of @DefaultValue parameter

Reports the value of @DefaultValue if it cannot be converted to the specified type of parameter.


@GET @Path("/{n}") public String get(@PathParam("n") @DefaultValue("III") int n) { // Error: Cannot convert 'III' to int }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Jakarta EE: RESTful Web Services (JAX-RS), 233.SNAPSHOT

Last modified: 13 July 2023