File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
src/main/java/com/checkmarx/ast Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 11package com .checkmarx .ast .containersRealtime ;
22
3+ import com .fasterxml .jackson .annotation .JsonCreator ;
34import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
45import com .fasterxml .jackson .annotation .JsonInclude ;
56import com .fasterxml .jackson .annotation .JsonProperty ;
1314public class ContainersRealtimeVulnerability {
1415 @ JsonProperty ("CVE" ) String cve ;
1516 @ JsonProperty ("Severity" ) String severity ;
16- }
1717
18+ @ JsonCreator
19+ public ContainersRealtimeVulnerability (@ JsonProperty ("CVE" ) String cve ,
20+ @ JsonProperty ("Severity" ) String severity ) {
21+ this .cve = cve ;
22+ this .severity = severity ;
23+ }
24+ }
Original file line number Diff line number Diff line change 11package com .checkmarx .ast .ossRealtime ;
22
3+ import com .fasterxml .jackson .annotation .JsonCreator ;
34import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
45import com .fasterxml .jackson .annotation .JsonInclude ;
56import com .fasterxml .jackson .annotation .JsonProperty ;
1011@ JsonDeserialize
1112@ JsonInclude (JsonInclude .Include .NON_NULL )
1213@ JsonIgnoreProperties (ignoreUnknown = true )
14+
1315public class OssRealtimeVulnerability {
1416 @ JsonProperty ("Id" ) String id ;
1517 @ JsonProperty ("Severity" ) String severity ;
1618 @ JsonProperty ("Description" ) String description ;
1719 @ JsonProperty ("FixVersion" ) String fixVersion ;
18- }
1920
21+ @ JsonCreator
22+ public OssRealtimeVulnerability (@ JsonProperty ("Id" ) String id ,
23+ @ JsonProperty ("Severity" ) String severity ,
24+ @ JsonProperty ("Description" ) String description ,
25+ @ JsonProperty ("FixVersion" ) String fixVersion ) {
26+ this .id = id ;
27+ this .severity = severity ;
28+ this .description = description ;
29+ this .fixVersion = fixVersion ;
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments