Skip to content

Commit

Permalink
Update the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed Feb 24, 2023
1 parent 699df92 commit c22b17e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ internal val Project.kotlinOrNull: KotlinProjectExtension?
project.extensions.findByType()
} catch (e: Throwable) {
when (e) {
// if the user project doesn't have KGP applied, we won't be able to load the class,
// so we can get NoClassDefFoundError, TypeNotPresentException or ClassNotFoundException
// if the user project doesn't have KGP applied, we won't be able to load the class;
// TypeNotPresentException is possible if it's loaded through reified generics.
is NoClassDefFoundError, is TypeNotPresentException, is ClassNotFoundException -> null
else -> throw e
}
Expand Down

0 comments on commit c22b17e

Please sign in to comment.