diff --git a/parsers/java.py b/parsers/java.py index 74a3403..94d0fa6 100644 --- a/parsers/java.py +++ b/parsers/java.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- - +import re from parsers.base import BaseParser @@ -8,4 +8,5 @@ def is_invalid_file(self, file_name): return False def get_changes(self, diff): - return [] # TODO: create java parser + return set(re.findall(r"(?:(?:public)|(?:private)|(?:static)|(?:protected)\s+)* \w+ +\w+ *\([^\)]*\) *\{", diff, re.MULTILINE)) +