diff --git a/persist-cli-tests/build.gradle b/persist-cli-tests/build.gradle index 8bc82b179..680c66e6d 100644 --- a/persist-cli-tests/build.gradle +++ b/persist-cli-tests/build.gradle @@ -321,7 +321,6 @@ def checkPostgreSQLTestDockerContainerStatus(containerName) { } } - task stopPostgreSQLTestDockerContainer() { doLast { if (!Os.isFamily(Os.FAMILY_WINDOWS)) { @@ -338,7 +337,6 @@ task stopPostgreSQLTestDockerContainer() { } } - checkstyle { toolVersion "${project.checkstylePluginVersion}" configFile rootProject.file("build-config/checkstyle/build/checkstyle.xml") diff --git a/persist-cli/src/main/java/io/ballerina/persist/nodegenerator/syntax/clients/DbClientSyntax.java b/persist-cli/src/main/java/io/ballerina/persist/nodegenerator/syntax/clients/DbClientSyntax.java index 1f288a80e..3f03dc1a9 100644 --- a/persist-cli/src/main/java/io/ballerina/persist/nodegenerator/syntax/clients/DbClientSyntax.java +++ b/persist-cli/src/main/java/io/ballerina/persist/nodegenerator/syntax/clients/DbClientSyntax.java @@ -123,8 +123,7 @@ public FunctionDefinitionNode getInitFunction(Module entityModule) { init.addQualifiers(new String[] { BalSyntaxConstants.KEYWORD_PUBLIC, BalSyntaxConstants.KEYWORD_ISOLATED }); init.addReturns(TypeDescriptor.getOptionalTypeDescriptorNode(BalSyntaxConstants.EMPTY_STRING, BalSyntaxConstants.PERSIST_ERROR)); - init.addStatement(NodeParser.parseStatement( - String.format(this.initDbClientMethodTemplate, this.datasource))); + init.addStatement(NodeParser.parseStatement(String.format(this.initDbClientMethodTemplate, this.datasource))); IfElse errorCheck = new IfElse(NodeParser.parseExpression(String.format( BalSyntaxConstants.RESULT_IS_BALLERINA_ERROR, BalSyntaxConstants.DB_CLIENT))); errorCheck.addIfStatement(NodeParser.parseStatement(String.format(BalSyntaxConstants.RETURN_ERROR,