From e2ae47b338ae3848c940488852ea9429018baa1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Ferreira?= Date: Thu, 13 Jun 2019 20:13:06 -0300 Subject: [PATCH] Adding Java Parser --- parsers/java.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)) +