New J2K: remove RedundantCompanionReferenceInspectionBasedProcessing as it already applied on shortening references
This commit is contained in:
@@ -147,7 +147,6 @@ private val removeRedundantElementsProcessingGroup =
|
||||
processings = listOf(
|
||||
RemoveExplicitTypeArgumentsProcessing(),
|
||||
RemoveJavaStreamsCollectCallTypeArgumentsProcessing(),
|
||||
RedundantCompanionReferenceInspectionBasedProcessing(),
|
||||
ExplicitThisInspectionBasedProcessing(),
|
||||
intentionBasedProcessing(RemoveEmptyClassBodyIntention())
|
||||
)
|
||||
|
||||
-11
@@ -442,17 +442,6 @@ class RedundantSemicolonInspectionBasedProcessing :
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class RedundantCompanionReferenceInspectionBasedProcessing :
|
||||
InspectionLikeProcessingForElement<KtReferenceExpression>(KtReferenceExpression::class.java) {
|
||||
override fun isApplicableTo(element: KtReferenceExpression, settings: ConverterSettings?): Boolean =
|
||||
RedundantCompanionReferenceInspection.isRedundantCompanionReference(element)
|
||||
|
||||
override fun apply(element: KtReferenceExpression) {
|
||||
RemoveRedundantCompanionReferenceFix.removeRedundantCompanionReference(element)
|
||||
}
|
||||
}
|
||||
|
||||
class ExplicitThisInspectionBasedProcessing :
|
||||
InspectionLikeProcessingForElement<KtExpression>(KtExpression::class.java) {
|
||||
override fun isApplicableTo(element: KtExpression, settings: ConverterSettings?): Boolean =
|
||||
|
||||
Reference in New Issue
Block a user