From 18c558fd92b5ec800f976c447452ede4e96e9de9 Mon Sep 17 00:00:00 2001 From: Daniel Woznicki Date: Thu, 24 Feb 2022 19:21:09 -0800 Subject: Fixed a bug where indentation was not correct for class/enum bodies that had an annotation --- tests/indent/java_spec.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/indent/java_spec.lua') diff --git a/tests/indent/java_spec.lua b/tests/indent/java_spec.lua index c0025dc88..8506992fb 100644 --- a/tests/indent/java_spec.lua +++ b/tests/indent/java_spec.lua @@ -19,5 +19,7 @@ describe("indent Java:", function() run:new_line("method.java", { on_line = 1, text = "void foo() {}", indent = 2 }) run:new_line("issue_2571.java", { on_line = 5, text = "void bar() {}", indent = 2 }) run:new_line("enum.java", { on_line = 2, text = "THING_B,", indent = 2 }) + run:new_line("class_with_annotation.java", { on_line = 2, text = "void foo() {}", indent = 2 }) + run:new_line("enum_with_annotation.java", { on_line = 2, text = "THING;", indent = 2 }) end) end) -- cgit v1.2.3-70-g09d2