diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2022-09-12 11:56:31 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-09-16 20:03:14 +0000 |
commit | 1125e9dd1378ebc9aa381eeb7139e7a95e269a42 (patch) | |
tree | c0520cf736ef8766c55e2e48c6b5956b5ac3023e /sonar-scanner-engine/src/main/java/org | |
parent | 3fdcf61545c23a2ae219fd8c8f44b44085f19aef (diff) | |
download | sonarqube-1125e9dd1378ebc9aa381eeb7139e7a95e269a42.tar.gz sonarqube-1125e9dd1378ebc9aa381eeb7139e7a95e269a42.zip |
SONAR-17287 Fix conversion of flow types
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java index f9b38d860cb..965600c0a22 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java @@ -195,8 +195,10 @@ public class IssuePublisher { return ScannerReport.FlowType.EXECUTION; case DATA: return ScannerReport.FlowType.DATA; - default: + case UNDEFINED: return ScannerReport.FlowType.UNDEFINED; + default: + throw new IllegalArgumentException("Unrecognized flow type: " + flowType); } } |