Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S1854: Add FP repro for #9466, #9467, #9468 #9469

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

pavel-mikula-sonarsource
Copy link
Contributor

Reproduces #9466, #9467, #9468

Copy link

sonarcloud bot commented Jun 26, 2024

Copy link

sonarcloud bot commented Jun 26, 2024

Copy link
Contributor

@mary-georgiou-sonarsource mary-georgiou-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments

Comment on lines +1556 to +1558
catch (Exception exc)
{
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly more ecological.

Suggested change
catch (Exception exc)
{
}
catch (Exception ex) { }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I'd normally do that, in this case, the catch has significant impact on the flow so I wanted to waste a bit of space on it.

Comment on lines +1575 to +1577
catch (Exception exc)
{
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
catch (Exception exc)
{
}
catch (Exception ex) { }

Comment on lines +1607 to +1611
try
{
try
{
CanThrow();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pavel-mikula-sonarsource pavel-mikula-sonarsource added the Sprint: Hardening Fix FPs/FNs/improvements label Jun 27, 2024
@pavel-mikula-sonarsource pavel-mikula-sonarsource merged commit bb28b15 into master Jun 27, 2024
32 checks passed
@pavel-mikula-sonarsource pavel-mikula-sonarsource deleted the Pavel/S1854-repros branch June 27, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sprint: Hardening Fix FPs/FNs/improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants