Open
Description
The current implementation of inner enum classes are not working for:
<library>okhttp-gson</library>
<enumCaseInsensitive>true</enumCaseInsensitive>
type: string
format: uri
This would generate:
public static ExampleInnerThreeEnum fromValue(URI value) {
for (ExampleInnerThreeEnum b : ExampleInnerThreeEnum.values()) {
if (b.value.equalsIgnoreCase(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
Which will cause compilation errors, since URI
does not have a method equalsIgnoreCase
.
Metadata
Metadata
Assignees
Labels
No labels