Make Java problem matcher opt-in (#1326)

Default the problem-matcher input to false so setup-java no longer
registers Java compiler and uncaught-exception annotations unless
explicitly enabled with problem-matcher: true.

Fixes #1322

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno Borges
2026-11-13 23:47:17 -05:00
committed by GitHub
co-authored by Copilot App
parent 5fb63c9bc9
commit d1374f8ac7
6 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -36747,7 +36747,7 @@ async function getJavaDistribution(distributionName, installerOptions, jdkFile)
function configureProblemMatcher(matcherPath) {
const problemMatcherEnabled = (0,util/* getBooleanInput */.Vt)(constants/* INPUT_PROBLEM_MATCHER */.Wt, true);
const problemMatcherEnabled = (0,util/* getBooleanInput */.Vt)(constants/* INPUT_PROBLEM_MATCHER */.Wt, false);
if (!problemMatcherEnabled) {
setup_java_core/* debug */.Yz('Java problem matcher is disabled');
return;