Skip to content

Commit

Permalink
🐛 rename failure accessor to match java bean conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandens committed Jul 24, 2024
1 parent ebf9297 commit 2024487
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/io/codemodder/codetf/CodeTFResult.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.codemodder.codetf;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.*;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -68,7 +69,7 @@ public DetectionTool getDetectionTool() {
return detectionTool;
}

public Failure getFailureState() {
public Failure getFailure() {
return failure;
}

Expand Down Expand Up @@ -100,6 +101,7 @@ public boolean usesAi() {
return changeset.stream().anyMatch(CodeTFChangesetEntry::usesAi);
}

@JsonIgnore
public List<FixedFinding> getFixedFindings() {
return changeset.stream()
.map(CodeTFChangesetEntry::getChanges)
Expand Down Expand Up @@ -189,7 +191,7 @@ public CodeTFResult build() {
updatedSummary != null ? updatedSummary : originalResult.getSummary(),
updatedDescription != null ? updatedDescription : originalResult.getDescription(),
detectionTool != null ? detectionTool : originalResult.getDetectionTool(),
failure != null ? failure : originalResult.getFailureState(),
failure != null ? failure : originalResult.getFailure(),
originalResult.getFailedFiles(),
updatedReferences != null ? updatedReferences : originalResult.getReferences(),
originalResult.getProperties(),
Expand Down

0 comments on commit 2024487

Please sign in to comment.