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

Clean various compile warnings #260

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

davissuber
Copy link
Contributor

@davissuber davissuber commented Dec 14, 2023

This pull request makes the following minor updates:

  • Prefer non-deprecated types in IntelliJType.kt
  • Prefer named object instead of a class with companion object for singleton-ish classes
  • Simplify some "always false" if-branches and remove some unreachable code

The most important ones being the changes in IntelliJType.kt;
the old ones are marked for removal.
@davissuber davissuber marked this pull request as draft December 14, 2023 01:03
@jbarr21 jbarr21 self-requested a review December 14, 2023 01:10
@@ -105,8 +105,7 @@ object XOverrides {
// one that declares the same method, and check that we haven't reached mA. We compare
// the enclosing elements rather than the methods themselves for the reason described
// at the start of the method.
var inherited: XMethodElement? = null
(inherited != null && overridden.enclosingElement != inherited.enclosingElement)
false
Copy link
Contributor

Choose a reason for hiding this comment

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

please be sure to test a local build of this in monorepo before we land this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Confirmed that all three of uber's big apps (rider / uber eats / driver) can be built with a motif version running the commit at 5a79929

@davissuber davissuber marked this pull request as ready for review December 14, 2023 19:02
@davissuber davissuber merged commit e3edd84 into uber:main Mar 21, 2024
2 checks passed
@davissuber davissuber deleted the ds-unknown-class-error branch March 21, 2024 16:41
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.

2 participants