Skip to content

Commit 249fa2b

Browse files
committed
Checkpoint 60 - Fix java8 usage of Optional from isEmpty to !isPresent
1 parent d584256 commit 249fa2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flink-cdc-e2e-tests/flink-cdc-pipeline-e2e-tests/src/test/java/org/apache/flink/cdc/pipeline/tests/MySqlToHudiE2eITCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ public void waitUntilJobState(JobID jobId, Duration timeout, JobStatus expectedS
804804
Optional<JobStatusMessage> optMessage =
805805
jobStatusMessages.stream().filter(j -> j.getJobId().equals(jobId)).findFirst();
806806

807-
if (optMessage.isEmpty()) {
807+
if (!optMessage.isPresent()) {
808808
LOG.warn("Job: {} not found, waiting for the next loop...", jobId);
809809
continue;
810810
}

0 commit comments

Comments
 (0)