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

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Jakarta EE: RESTful Web Services (JAX-RS), 241.14841

Last modified: 12 March 2024