File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
src/main/java/io/securecodebox/persistence/defectdojo/model Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -111,15 +111,15 @@ public class Finding extends BaseModel {
111111 @ JsonProperty ("numerical_severity" )
112112 public String getNumericalSeverity () {
113113 switch (this .severity ) {
114- case Critical :
114+ case CRITICAL :
115115 return "S0" ;
116- case High :
116+ case HIGH :
117117 return "S1" ;
118- case Medium :
118+ case MEDIUM :
119119 return "S2" ;
120- case Low :
120+ case LOW :
121121 return "S3" ;
122- case Informational :
122+ case INFORMATIONAL :
123123 return "S4" ;
124124 default :
125125 throw new PersistenceException ("Unknown severity: '" + this .severity + "'" );
@@ -133,19 +133,18 @@ public boolean equalsQueryString(Map<String, Object> queryParams) {
133133
134134 public enum Severity {
135135 @ JsonProperty ("Critical" )
136- Critical (5 ),
136+ CRITICAL (5 ),
137137 @ JsonProperty ("High" )
138- High (4 ),
138+ HIGH (4 ),
139139 @ JsonProperty ("Medium" )
140- Medium (3 ),
140+ MEDIUM (3 ),
141141 @ JsonProperty ("Low" )
142- Low (2 ),
142+ LOW (2 ),
143143 // Depending on the Scanner DefectDojo uses either Info or Informational
144144 // E.g. Nmap uses Info, Zap uses Informational
145145 @ JsonProperty ("Info" )
146146 @ JsonAlias ("Informational" )
147- Informational (1 ),
148- ;
147+ INFORMATIONAL (1 );
149148
150149 long severity ;
151150
You can’t perform that action at this time.
0 commit comments