-
Notifications
You must be signed in to change notification settings - Fork 81
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
Use inExpression in a nullsafe way #417
Conversation
be69526
to
5b7ef97
Compare
@hick209 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Is this fixing an issue that you have seem or just a precaution? |
I mostly care because our internal build has some additional null checking for JDK classes, which is triggering on this code. However, this version will also crash on unbalanced use of the stack, which is nice. |
Ran into merge conflicts while trying to land this. @nreid260 would you mind rebasing it? |
Nevermind, it was simple enough. I've rebased it |
* upstream/main: Add unit tests to capture line break behavior on type specifiers Plugin doesn't work with if "Only VCS changed text" is selected from code-reformat settings (facebook#386) Bump version to 0.47-SNAPSHOT Bump version to 0.46 Fix indentation of trailing comments in a bunch of cases (facebook#418) Adjust .editorconfig for kotlinlang style for IntelliJ to better align with ktfmt (facebook#412) Bump Kotlin version to 1.8.22 Bump version to 0.46-SNAPSHOT Bump version to 0.45 Bump word-wrap from 1.2.3 to 1.2.4 in /website (facebook#410) Use inExpression in a nullsafe way (facebook#417) Update ktfmt component on FBS:master Back out "Improve argsfile support" Improve argsfile support Fix double indentation in Elvis chains (facebook#416) Daily `arc lint --take KTFMT` Remove TypeNameClassifier Support context receivers (facebook#400) Added link to live playground directly into README file Keep imports from the same package if the name is overloaded (facebook#414)
peekLast is a JDK method using platform types for the return value.