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:
Toshiaki Kameyama
2019-11-27 22:08:54 +09:00
committed by Ilya Kirillov
parent dbacae94d0
commit c72622c6d7
11 changed files with 69 additions and 57 deletions
@@ -1,3 +1,4 @@
// PROBLEM: Modifiers should follow annotations
annotation class Test
<caret>public @Test /* this is a test */ class MyTest
@@ -1,3 +1,4 @@
// PROBLEM: Modifiers should follow annotations
annotation class Test
@Test
@@ -1,3 +1,4 @@
// PROBLEM: Modifiers should follow annotations
annotation class Inject
annotation class VisibleForTesting
@@ -1,3 +1,4 @@
// PROBLEM: Modifiers should follow annotations
annotation class Inject
annotation class VisibleForTesting
@@ -1 +1,3 @@
// PROBLEM: Non-canonical modifiers order
// FIX: Sort modifiers
<caret>abstract public class Test
@@ -1 +1,3 @@
// PROBLEM: Non-canonical modifiers order
// FIX: Sort modifiers
public abstract class Test