KT-32551 New J2K: Non-canonical modifiers order inspection is not applied during convertion of inner super class (#2806)
New J2K: add SortModifiers inspection to post-processing #KT-32551 Fixed
This commit is contained in:
committed by
Ilya Kirillov
parent
dbacae94d0
commit
c72622c6d7
@@ -220,7 +220,8 @@ private val inspectionLikePostProcessingGroup =
|
||||
MayBeConstantInspectionBasedProcessing(),
|
||||
RemoveForExpressionLoopParameterTypeProcessing(),
|
||||
intentionBasedProcessing(ReplaceMapGetOrDefaultIntention()),
|
||||
inspectionBasedProcessing(ReplaceGuardClauseWithFunctionCallInspection())
|
||||
inspectionBasedProcessing(ReplaceGuardClauseWithFunctionCallInspection()),
|
||||
inspectionBasedProcessing(SortModifiersInspection())
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
public class TestInnerClasses {
|
||||
public class Base {}
|
||||
public class Derived extends Base {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class TestInnerClasses {
|
||||
open inner class Base
|
||||
inner class Derived : Base()
|
||||
}
|
||||
+5
@@ -4226,6 +4226,11 @@ public class NewJavaToKotlinConverterSingleFileTestGenerated extends AbstractNew
|
||||
runTest("nj2k/testData/newJ2k/postProcessing/RedunduntTypeCastAndProhibitedInline.java");
|
||||
}
|
||||
|
||||
@TestMetadata("SortModifiers.java")
|
||||
public void testSortModifiers() throws Exception {
|
||||
runTest("nj2k/testData/newJ2k/postProcessing/SortModifiers.java");
|
||||
}
|
||||
|
||||
@TestMetadata("SyntheticExtensionPropertyAccess.java")
|
||||
public void testSyntheticExtensionPropertyAccess() throws Exception {
|
||||
runTest("nj2k/testData/newJ2k/postProcessing/SyntheticExtensionPropertyAccess.java");
|
||||
|
||||
Reference in New Issue
Block a user