@@ -263,8 +263,10 @@ public class TrackerRawInputFactory { | |||
return Optional.of(DbIssues.FlowType.DATA); | |||
case EXECUTION: | |||
return Optional.of(DbIssues.FlowType.EXECUTION); | |||
default: | |||
case UNDEFINED: | |||
return Optional.empty(); | |||
default: | |||
throw new IllegalArgumentException("Unrecognized type: " + flowType); | |||
} | |||
} | |||
@@ -71,8 +71,10 @@ public class TextRangeResponseFormatter { | |||
return Optional.of(Common.FlowType.DATA); | |||
case EXECUTION: | |||
return Optional.of(Common.FlowType.EXECUTION); | |||
case UNDEFINED: | |||
// we should only get this value if no type was set (since it's the default value of the enum), in which case this method shouldn't be called. | |||
default: | |||
return Optional.empty(); | |||
throw new IllegalArgumentException("Unrecognized flow type: " + flowType); | |||
} | |||
} | |||
@@ -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); | |||
} | |||
} | |||