Skip to content

Commit

Permalink
running spotlessApply
Browse files Browse the repository at this point in the history
Signed-off-by: Ana Rocha <[email protected]>
  • Loading branch information
anaaroch committed Sep 5, 2024
1 parent 9302e61 commit 0a7893f
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ private boolean isRawViewStateSecure(String viewState) {

private AlertBuilder createAlert(String viewState) {
return newAlert()
.setRisk(getRisk())
.setConfidence(Alert.CONFIDENCE_LOW)
.setDescription(getDescription())
.setOtherInfo(Constant.messages.getString(MESSAGE_PREFIX + "extrainfo", viewState))
.setSolution(getSolution())
.setReference(getReference())
.setCweId(getCweId())
.setWascId(getWascId());
.setRisk(getRisk())
.setConfidence(Alert.CONFIDENCE_LOW)
.setDescription(getDescription())
.setOtherInfo(Constant.messages.getString(MESSAGE_PREFIX + "extrainfo", viewState))
.setSolution(getSolution())
.setReference(getReference())
.setCweId(getCweId())
.setWascId(getWascId());
}

// jsf server side implementation in com.sun.faces.renderkit.ServerSideStateHelper
Expand Down Expand Up @@ -257,7 +257,7 @@ public int getWascId() {
@Override
public List<Alert> getExampleAlerts() {
return List.of(
createAlert("<input type=\"hidden\" id=\"javax.faces.viewstate\" value=\"1231\"").build()
);
createAlert("<input type=\"hidden\" id=\"javax.faces.viewstate\" value=\"1231\"")
.build());
}
}

0 comments on commit 0a7893f

Please sign in to comment.