From 00f7ff63b4e8d5bb2f0d0a49c5858f02cc759d8f Mon Sep 17 00:00:00 2001 From: Max Karolinskiy <41635752+mkarolin@users.noreply.github.com> Date: Wed, 1 Apr 2026 22:41:10 -0400 Subject: [PATCH] Revert "Enable CheckJavaStyle on MacOS (#35036)" (#35191) This reverts commit b328992aac7b9639148af13f46ffec454418d92d. This check fails on MacOS CIs. The failure error is: Evaluation of CheckJavaStyle failed: [Errno 2] No such file or directory: '//src/third_party/jdk/current/bin/java'. Upstream's DEPS does not check out third_party/jdk on MacOS based on the condition: 'src/third_party/jdk/current': { ... # Needed on Linux for use on chromium_presubmit (for checkstyle). 'condition': '(checkout_android or checkout_linux) and non_git_source', ... --- PRESUBMIT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 0d3cd657121..7fb02056f0e 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -593,8 +593,8 @@ def CheckJavaStyle(_original_check, input_api, output_api): for f in input_api.AffectedFiles()): return [] - # Android toolchain is only available on Linux and MacOS. - if not sys.platform.startswith(('linux', 'darwin')): + # Android toolchain is only available on Linux. + if not sys.platform.startswith('linux'): return [] with brave_chromium_utils.sys_path('//tools/android/checkstyle'):