refactor: erefactor/AutoRefactor - Annotation (#8544)

AutoRefactor cleanup 'AnnotationCleanUp' applied by erefactor:

Simplifies annotation uses:
- empty parentheses will be removed from annotations,
- single members named "value" will be removed from annotations and
only the value will be left.

For AutoRefactor see https://github.com/JnRouvignac/AutoRefactor
For erefactor see https://github.com/cal101/erefactor
This commit is contained in:
cal 2021-02-08 04:50:21 +01:00 committed by GitHub
parent a06af89be9
commit ef9e8b7181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ package org.openapitools.codegen.api;
*
* @deprecated as of 5.0, replaced by {@link TemplatingExecutor}.
*/
@Deprecated()
@Deprecated
public interface TemplatingGenerator extends TemplatingExecutor {
}

View File

@ -25,7 +25,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
*/
@Controller
public class HomeController {
@RequestMapping(value = "/")
@RequestMapping("/")
public String index() {
return "redirect:index.html";
}

View File

@ -155,7 +155,7 @@ public class FsharpFunctionsServerCodegen extends AbstractFSharpCodegen {
return outputFolder + File.separator + sourceFolder + File.separator + "impl";
}
@Override()
@Override
public String toModelImport(String name) {
return packageName + "." + modelPackage() + "." + name;
}

View File

@ -229,7 +229,7 @@ public class FsharpGiraffeServerCodegen extends AbstractFSharpCodegen {
return outputFolder + File.separator + sourceFolder + File.separator + "impl";
}
@Override()
@Override
public String toModelImport(String name) {
return packageName + "." + modelPackage() + "." + name;
}

View File

@ -368,7 +368,7 @@ public class JavaJAXRSCXFExtServerCodegenTest extends JavaJaxrsBaseTest {
assertEquals(testerCodegen.getTestDataControlFile(), new File(curdir, "my/test-data-control.json"));
}
@Test()
@Test
public void testGenerateOperationBodyWithCodedTestData() throws Exception {
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
output.deleteOnExit();
@ -412,7 +412,7 @@ public class JavaJAXRSCXFExtServerCodegenTest extends JavaJaxrsBaseTest {
checkFile(Paths.get(outputPath + "/test-data-control.json"), false);
}
@Test()
@Test
public void testGenerateOperationBodyWithJsonTestData() throws Exception {
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
output.deleteOnExit();