File tree 1 file changed +6
-4
lines changed
build-info-client/src/main/java/org/jfrog/build/client/artifactoryXrayResponse
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
package org .jfrog .build .client .artifactoryXrayResponse ;
2
2
3
3
import com .fasterxml .jackson .annotation .JsonProperty ;
4
+ import org .apache .commons .lang .StringUtils ;
4
5
import org .apache .commons .lang .builder .ToStringBuilder ;
5
6
6
7
import java .io .Serializable ;
@@ -115,10 +116,11 @@ public enum IssueType {
115
116
}
116
117
117
118
public IssueType getIssueType () {
118
- if ("Security" .equals (this .getType ())) {
119
- return IssueType .SECURITY ;
120
- } else if ("License" .equals (this .getType ())) {
121
- return IssueType .LICENSE ;
119
+ switch (StringUtils .defaultString (getType ()).toUpperCase ()) {
120
+ case "SECURITY" :
121
+ return IssueType .SECURITY ;
122
+ case "LICENSE" :
123
+ return IssueType .LICENSE ;
122
124
}
123
125
return null ;
124
126
}
You can’t perform that action at this time.
0 commit comments