File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
dd-java-agent/agent-iast/src
main/java/com/datadog/iast/model/json
test/groovy/com/datadog/iast/model/json Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1414
1515class TruncatedVulnerabilitiesAdapter extends FormattingAdapter <TruncatedVulnerabilities > {
1616
17- private static final String MAX_SIZE_EXCEEDED = "MAX SIZE EXCEEDED " ;
17+ private static final String MAX_SIZE_EXCEEDED = "MAX_SIZE_EXCEEDED " ;
1818
1919 private final JsonAdapter <Vulnerability > vulnerabilityAdapter ;
2020
Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
415415 {
416416 "type": "WEAK_HASH",
417417 "evidence": {
418- "value": "MAX SIZE EXCEEDED "
418+ "value": "MAX_SIZE_EXCEEDED "
419419 },
420420 "hash":1042880134,
421421 "location": {
@@ -454,7 +454,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
454454 "vulnerabilities": [
455455 {
456456 "evidence": {
457- "value": "MAX SIZE EXCEEDED "
457+ "value": "MAX_SIZE_EXCEEDED "
458458 },
459459 "hash": 1042880134,
460460 "location": {
@@ -467,7 +467,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
467467 },
468468 {
469469 "evidence": {
470- "value": "MAX SIZE EXCEEDED "
470+ "value": "MAX_SIZE_EXCEEDED "
471471 },
472472 "hash": 1042880134,
473473 "location": {
@@ -543,7 +543,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
543543 }
544544
545545 private static int countGenericEvidenceOccurrences (final String input ){
546- Pattern pattern = Pattern . compile(" \" evidence\" :\\ {\" value\" :\" MAX SIZE EXCEEDED \" }" )
546+ Pattern pattern = Pattern . compile(" \" evidence\" :\\ {\" value\" :\" MAX_SIZE_EXCEEDED \" }" )
547547 Matcher matcher = pattern. matcher(input)
548548 int count = 0
549549 while (matcher. find()){
You can’t perform that action at this time.
0 commit comments