[Analysis API, FIR] migrate ::class.java -> ::class inside error messages
They seem to provide similar results and the `.java` part is redundant
This commit is contained in:
committed by
Space Team
parent
24db4e62f5
commit
08400d930f
+1
-1
@@ -1283,7 +1283,7 @@ internal class KtFirCallResolver(
|
||||
action()
|
||||
} catch (e: Exception) {
|
||||
rethrowExceptionWithDetails(
|
||||
"Error during resolving call ${element::class.java.name}",
|
||||
"Error during resolving call ${element::class}",
|
||||
exception = e,
|
||||
) {
|
||||
withPsiEntry("psi", element, analysisSession::getModule)
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ object KtFirReferenceResolver : ResolveCache.PolyVariantResolver<KtReference> {
|
||||
} catch (e: Exception) {
|
||||
if (shouldIjPlatformExceptionBeRethrown(e)) throw e
|
||||
|
||||
errorWithAttachment("Unable to resolve reference ${ref.element::class.java}", cause = e) {
|
||||
errorWithAttachment("Unable to resolve reference ${ref.element::class}", cause = e) {
|
||||
withPsiEntry("reference", ref.element)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user