in src/java/detectors/code_clone/CodeCloneCompliant.java [29:46]
private boolean doesVideoStreamExistForJobCompliant(final String videoStreamArn,
final String viewAngle,
final String activityJobArn,
final ActivityType activityType) throws Exception {
try {
ActivityJobItem activityJob = null;
// Compliant: avoids using similar code fragments in the same file.
activityJob = getJobFromArnAndActivityType(activityJobArn, activityType);
if (activityJob == null) {
throw new Exception("Unexpected workflow activity job.");
}
return containsVideoStreamWithGivenAngleAndArn(videoStreamArn, viewAngle, activityJob);
} catch (Exception ex) {
log.error("Unable to get video stream data from DynamoDB.", ex);
throw ex;
}
}