Skip to content

Java/C#: Remove useless disjuncts. #12616

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

Merged

Conversation

aschackmull
Copy link
Contributor

The value of a long ought to always be convertible to a float, so that case does nothing (it's been around for a long time and git forensics indicate a possible cause, but it's not entirely clear).
The int case is also useless even though it isn't empty in the C# case, but in those cases (large unsigned ints) it is covered by getNonIntegerValue and hence still irrelevant.

@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Mar 21, 2023
@aschackmull aschackmull requested review from a team as code owners March 21, 2023 13:49
Copy link
Contributor

@atorralba atorralba left a comment

Choose a reason for hiding this comment

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

Java looks plausible to me.

Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

Looks plausible to me!

Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

The DCA runs failed, so please rerun.

@aschackmull
Copy link
Contributor Author

dca looks uneventful

@aschackmull aschackmull merged commit dc6729d into github:main Mar 22, 2023
@aschackmull aschackmull deleted the java-csharp/redundant-sign-analysis-case branch March 22, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# Java no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants