Skip to content

Commit

Permalink
Rename variables in java code
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedSabthar committed Nov 8, 2024
1 parent e93b453 commit cdfa444
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit cdfa444

Please sign in to comment.