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:
Kirill Vlasov
2015-12-15 14:09:31 +05:00
parent 2a5b96dbcf
commit 49a6d0e6c1
42 changed files with 143 additions and 0 deletions

View File

@@ -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();
}

View File

@@ -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) + ">";