Skip to content

Commit 2a15ade

Browse files
committed
changed to push FINAL for Haxe 4
1 parent f9ef85c commit 2a15ade

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/checkstyle/checks/modifier/ModifierOrderCheck.hx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ class ModifierOrderCheck extends Check {
1515

1616
public function new() {
1717
super(AST);
18-
#if (haxe_ver >= 4.0)
19-
modifiers = [MACRO, OVERRIDE, PUBLIC_PRIVATE, STATIC, INLINE, DYNAMIC, FINAL];
20-
#else
2118
modifiers = [MACRO, OVERRIDE, PUBLIC_PRIVATE, STATIC, INLINE, DYNAMIC];
19+
#if (haxe_ver >= 4.0)
20+
modifiers.push(FINAL);
2221
#end
2322
categories = [Category.STYLE, Category.CLARITY];
2423
}

0 commit comments

Comments
 (0)