File tree 1 file changed +10
-11
lines changed
src/main/java/io/securecodebox/persistence/defectdojo/model
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 {
111
111
@ JsonProperty ("numerical_severity" )
112
112
public String getNumericalSeverity () {
113
113
switch (this .severity ) {
114
- case Critical :
114
+ case CRITICAL :
115
115
return "S0" ;
116
- case High :
116
+ case HIGH :
117
117
return "S1" ;
118
- case Medium :
118
+ case MEDIUM :
119
119
return "S2" ;
120
- case Low :
120
+ case LOW :
121
121
return "S3" ;
122
- case Informational :
122
+ case INFORMATIONAL :
123
123
return "S4" ;
124
124
default :
125
125
throw new PersistenceException ("Unknown severity: '" + this .severity + "'" );
@@ -133,19 +133,18 @@ public boolean equalsQueryString(Map<String, Object> queryParams) {
133
133
134
134
public enum Severity {
135
135
@ JsonProperty ("Critical" )
136
- Critical (5 ),
136
+ CRITICAL (5 ),
137
137
@ JsonProperty ("High" )
138
- High (4 ),
138
+ HIGH (4 ),
139
139
@ JsonProperty ("Medium" )
140
- Medium (3 ),
140
+ MEDIUM (3 ),
141
141
@ JsonProperty ("Low" )
142
- Low (2 ),
142
+ LOW (2 ),
143
143
// Depending on the Scanner DefectDojo uses either Info or Informational
144
144
// E.g. Nmap uses Info, Zap uses Informational
145
145
@ JsonProperty ("Info" )
146
146
@ JsonAlias ("Informational" )
147
- Informational (1 ),
148
- ;
147
+ INFORMATIONAL (1 );
149
148
150
149
long severity ;
151
150
You can’t perform that action at this time.
0 commit comments