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

Fix all compiler warnings #562

Merged
merged 1 commit into from
Apr 4, 2022
Merged

Fix all compiler warnings #562

merged 1 commit into from
Apr 4, 2022

Conversation

dlurton
Copy link
Member

@dlurton dlurton commented Apr 4, 2022

I've been doing some extensive work on this code base lately and the compiler warnings (which numbered ~900, IIRC) were driving me crazy since I couldn't tell if I was adding new warnings or not, so I decided to knock this out this morning. It took only about 1.5 hours since most of them were related to ExprNode deprecation.

In the future, it will be easy to tell if there are new warnings or not and we should consider a way of enforcing this.

This addresses #541 and all other warnings as well.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dlurton dlurton requested a review from alancai98 April 4, 2022 18:03
@alancai98 alancai98 linked an issue Apr 4, 2022 that may be closed by this pull request
Copy link
Member

@alancai98 alancai98 left a comment

Choose a reason for hiding this comment

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

:shipit: Thanks for fixing all the warnings! Left one non-blocking question out of curiosity

@@ -50,7 +53,6 @@ import kotlin.test.assertEquals
*
* As we parameterize PartiQL's other tests, we should migrate them away from using this base class as well.
*/
@Deprecated("This class and everything in it should be considered deprecated.")
Copy link
Member

Choose a reason for hiding this comment

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

Always wondered about why EvaluatorTestBase was deprecated. Any insight into its history?

Copy link
Member Author

Choose a reason for hiding this comment

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

The intention was to migrate to the new test DSL that I made. That migration however never happened and the deprecation was just causing a ton of compiler warnings.

@alancai98
Copy link
Member

Since this PR resolves all the current warnings, may want to also enable future warnings as errors #256.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add warning suppressions to files using ExprNode
2 participants