Skip to content

Unreachable code in FlowLatencyAnalysisSwitch #1427

Description

@joeseibel

There is a large section of unreachable code in FlowLatencyAnalysisSwitch.mapComponentInstance. The unreachable code is from line 216 to line 256.

The if condition on line 215, entry.getContributors().isEmpty(), only evaluates to true for the first segment of the flow. However, this is contained in another if which only executes for segments that have a previous connection. That condition is on line 189 and is fi != null.

Is there a bug somewhere and should this code actually be executed or should the unreachable code simply be removed? If I am wrong and the code can be executed, then please provide a model which executes that code.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions