forked from loafle/openapi-generator-original
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:
parent
a06af89be9
commit
ef9e8b7181
@ -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 {
|
||||
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user