-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Rewrite ExceptionUtils methods as extension functions. #4947
Rewrite ExceptionUtils methods as extension functions. #4947
Conversation
f8c5d42
to
5959da1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From code standpoint it looks fine to me. I did not try the apk.
@file:JvmName("ExceptionUtils")
to keep the java world happy is nice and in the IDE it does get correctly indexed/linked.
Only thing i have is that the test class for Throwable
is called ThrowableExtensionsTest
, but that should be fine, if NewPipe wants to stick with this style.
aedb0f9
to
f5beb2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested and it works. Thank you for all of the improvements :-D
but that should be fine, if NewPipe wants to stick with this style.
Yeah, I think this is ok.
Oh, but compilation fails, could you fix this? |
f5beb2d
to
ff7ab1a
Compare
I did. |
a290684
to
f2bb8b1
Compare
f2bb8b1
to
8b7c597
Compare
8b7c597
to
50dcf30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
@Stypox Can we merge this?
…nvert_ExceptionUtils_to_extensions Rewrite ExceptionUtils methods as extension functions.
What is it?
Description of the changes in your PR
ExceptionUtils
methods as extension functions for better discoverability in Kotlin.APK testing
app-debug.zip
Due diligence