terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

Some structures in static blocks are identified as function in Java #312

Open cg122 opened 3 years ago

cg122 commented 3 years ago

See below the failed test:

    def test_structure_in_static_block(self):
        result = get_java_function_list("""
          static { if(){}; catch(){} }
        """)
        self.assertEqual(0, len(result))  

################
AssertionError: 0 != 2