Skip to content

Commit 3f28d80

Browse files
committed
Fixed the checkstyle violations
1 parent e3708e6 commit 3f28d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/src/test/java/smoketest/ant/SampleAntApplicationIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void runJar() throws Exception {
6565
// Set PATH to include Java bin directory
6666
java.util.Map<String, String> env = processBuilder.environment();
6767
String currentPath = env.get("PATH");
68-
env.put("PATH", "/usr/lib/jvm/java-17-openjdk-amd64/bin" + (currentPath != null ? ":" + currentPath : ""));
68+
env.put("PATH", "/usr/lib/jvm/java-17-openjdk-amd64/bin" + ((currentPath != null) ? ":" + currentPath : ""));
6969
Process process = processBuilder.directory(libs).start();
7070
process.waitFor(5, TimeUnit.MINUTES);
7171
assertThat(process.exitValue()).isZero();
@@ -99,7 +99,7 @@ boolean isJavaExecutableAvailable() {
9999
Process process = pb.start();
100100
return process.waitFor() == 0;
101101
}
102-
catch (Exception e) {
102+
catch (Exception ex) {
103103
return false;
104104
}
105105
}

0 commit comments

Comments
 (0)