Commit 7c3851af by sikang

bug fix

parent ba0aeb8c
......@@ -156,7 +156,9 @@ class JavaGarble:
curly_braces -= line.count("}")
# 定位1个缩进开头的类方法
if line.startswith(" ") and not line.startswith(" ") and ("){\n" in line or ") {\n" in line):
if line.startswith(" ") and not line.startswith(" ") \
and ("){\n" in line or ") {\n" in line) \
and "enum" not in line and "interface" not in line and "class" not in line:
curly_braces = line.count("{")
curly_braces -= line.count("}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment