diff options
author | snermolaev <snermolaev@yandex-team.ru> | 2022-02-10 16:45:53 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:53 +0300 |
commit | 2015790ac9fcc04caab83fccc23ab2460310a797 (patch) | |
tree | e644e9bc3f6f688561a871793b59bf8a637e0f72 /build/scripts/build_java_with_error_prone2.py | |
parent | c768a99151e47c3a4bb7b92c514d256abd301c4d (diff) | |
download | ydb-2015790ac9fcc04caab83fccc23ab2460310a797.tar.gz |
Restoring authorship annotation for <snermolaev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/scripts/build_java_with_error_prone2.py')
-rw-r--r-- | build/scripts/build_java_with_error_prone2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/scripts/build_java_with_error_prone2.py b/build/scripts/build_java_with_error_prone2.py index 4efc1e444a..9bdcfcd09c 100644 --- a/build/scripts/build_java_with_error_prone2.py +++ b/build/scripts/build_java_with_error_prone2.py @@ -18,7 +18,7 @@ JAVA10_EXPORTS = [ '--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED', '--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED', '--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED', - '--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED', + '--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED', ] @@ -26,11 +26,11 @@ def get_java_version(exe): p = subprocess.Popen([exe, '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() for line in ((out or '').strip() + (err or '').strip()).split("\n"): - m = re.match(r'java version "(.+)"', line) + m = re.match(r'java version "(.+)"', line) if m: parts = m.groups()[0].split(".") return parts[1] if parts[0] == "1" else parts[0] - m = re.match(r'openjdk version "(\d+).*"', line) + m = re.match(r'openjdk version "(\d+).*"', line) if m: parts = m.groups()[0].split(".") return parts[0] @@ -65,7 +65,7 @@ def just_do_it(argv): raise Exception("Can't determine java version") if int(ver) >= 10: for f in javac_cmd: - if f.startswith('-Xep'): + if f.startswith('-Xep'): ERROR_PRONE_FLAGS.append(f) for f in ERROR_PRONE_FLAGS: if f in javac_cmd: |