From 1125e9dd1378ebc9aa381eeb7139e7a95e269a42 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Mon, 12 Sep 2022 11:56:31 -0500 Subject: SONAR-17287 Fix conversion of flow types --- .../src/main/java/org/sonar/scanner/issue/IssuePublisher.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sonar-scanner-engine/src/main/java/org') 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); } } -- cgit v1.2.3