From cdfa4441ad364df737c1f29d19020476a8bf246e Mon Sep 17 00:00:00 2001 From: MohamedSabthar Date: Fri, 8 Nov 2024 14:11:10 +0530 Subject: [PATCH] Rename variables in java code --- .../staticcodeanalyzer/StaticCodeAnalyzerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler-plugin-tests/src/test/java/io/ballerina/stdlib/http/compiler/staticcodeanalyzer/StaticCodeAnalyzerTest.java b/compiler-plugin-tests/src/test/java/io/ballerina/stdlib/http/compiler/staticcodeanalyzer/StaticCodeAnalyzerTest.java index 979d583b7..8f5ffcf59 100644 --- a/compiler-plugin-tests/src/test/java/io/ballerina/stdlib/http/compiler/staticcodeanalyzer/StaticCodeAnalyzerTest.java +++ b/compiler-plugin-tests/src/test/java/io/ballerina/stdlib/http/compiler/staticcodeanalyzer/StaticCodeAnalyzerTest.java @@ -90,10 +90,10 @@ public void testStaticCodeRules() throws IOException, InterruptedException { } public static String executeScanProcess(String targetPackage) throws IOException, InterruptedException { - ProcessBuilder processBuilder2 = new ProcessBuilder(BALLERINA_PATH.toString(), SCAN_COMMAND); - processBuilder2.directory(RESOURCE_PACKAGES_DIRECTORY.resolve(targetPackage).toFile()); - Process process2 = processBuilder2.start(); - int exitCode = process2.waitFor(); + ProcessBuilder processBuilder = new ProcessBuilder(BALLERINA_PATH.toString(), SCAN_COMMAND); + processBuilder.directory(RESOURCE_PACKAGES_DIRECTORY.resolve(targetPackage).toFile()); + Process process = processBuilder.start(); + int exitCode = process.waitFor(); Assert.assertFalse(ExitCode.hasFailure(exitCode)); return Files.readString(RESOURCE_PACKAGES_DIRECTORY.resolve(targetPackage) .resolve("target").resolve("report").resolve("scan_results.json"));