We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ffc51 commit 1cc0064Copy full SHA for 1cc0064
randunit/src/main/kotlin/com/williamfzc/randunit/scanner/Scanner.kt
@@ -42,12 +42,14 @@ open class Scanner @JvmOverloads constructor(private var cfg: ScannerConfig = Sc
42
// avoid NoClassDef
43
try {
44
t.canonicalName
45
+ t.simpleName
46
} catch (e: Throwable) {
47
// catch all the throwable (not only exceptions
48
// should not cause any errors here whatever
49
return when (e) {
50
is IncompatibleClassChangeError -> false
51
is NoClassDefFoundError -> false
52
+ is InternalError -> false
53
else -> throw e
54
}
55
0 commit comments