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(
|
processings = listOf(
|
||||||
RemoveExplicitTypeArgumentsProcessing(),
|
RemoveExplicitTypeArgumentsProcessing(),
|
||||||
RemoveJavaStreamsCollectCallTypeArgumentsProcessing(),
|
RemoveJavaStreamsCollectCallTypeArgumentsProcessing(),
|
||||||
RedundantCompanionReferenceInspectionBasedProcessing(),
|
|
||||||
ExplicitThisInspectionBasedProcessing(),
|
ExplicitThisInspectionBasedProcessing(),
|
||||||
intentionBasedProcessing(RemoveEmptyClassBodyIntention())
|
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 :
|
class ExplicitThisInspectionBasedProcessing :
|
||||||
InspectionLikeProcessingForElement<KtExpression>(KtExpression::class.java) {
|
InspectionLikeProcessingForElement<KtExpression>(KtExpression::class.java) {
|
||||||
override fun isApplicableTo(element: KtExpression, settings: ConverterSettings?): Boolean =
|
override fun isApplicableTo(element: KtExpression, settings: ConverterSettings?): Boolean =
|
||||||
|
|||||||
Reference in New Issue
Block a user