mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-17 08:31:23 +00:00
Fixing squid:S1161 - @Override annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one
This commit is contained in:
@@ -51,6 +51,7 @@ public abstract class AbstractOptionsTest {
|
||||
|
||||
private Function<CliOption, String> getCliOptionTransformer() {
|
||||
return new Function<CliOption, String>() {
|
||||
@Override
|
||||
public String apply(CliOption option) {
|
||||
return option.getOpt();
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ public class CodegenTest {
|
||||
final Swagger model = parseAndPrepareSwagger("src/test/resources/2_0/requiredTest.json");
|
||||
|
||||
final DefaultCodegen codegen = new DefaultCodegen() {
|
||||
@Override
|
||||
public String getSwaggerType(Property p) {
|
||||
if (p != null && !p.getRequired()) {
|
||||
return "Optional<" + super.getSwaggerType(p) + ">";
|
||||
|
||||
Reference in New Issue
Block a user