Commit 1de627f4 by sikang

bug fix

parent b7a58f64
......@@ -20,7 +20,6 @@ class JavaGarble:
return result
# 生成变量
def __generate_variable(self):
var_scope = ["public", "private", "protected"]
var_types = ["String", "int", "double", "float"]
......@@ -166,7 +165,8 @@ class JavaGarble:
# 定位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 "static" 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