Skip to content

SONARJAVA-4426 S5778 allow calling factory methods to create empty collections #1808

SONARJAVA-4426 S5778 allow calling factory methods to create empty collections

SONARJAVA-4426 S5778 allow calling factory methods to create empty collections #1808

Triggered via pull request May 27, 2026 11:27
Status Failure
Total duration 20m 30s
Artifacts

build.yml

on: pull_request
Build and Unit Test on Windows
9m 58s
Build and Unit Test on Windows
Matrix: Plugin QA
Matrix: Ruling QA
Sanity Test
2m 45s
Sanity Test
Test Analyze
6m 1s
Test Analyze
Custom Rules and License Check
3m 32s
Custom Rules and License Check
Autoscan Tests
4m 39s
Autoscan Tests
Promote
0s
Promote
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 21 warnings
Ruling QA (sonar-m-public, only-sonarqube-project, LATEST_RELEASE)
Process completed with exit code 1.
Autoscan Tests
Process completed with exit code 1.
Ruling QA (github-windows-latest-m, only-sonarqube-project, LATEST_RELEASE)
Process completed with exit code 1.
Build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Build
⚠️ The 'sonar-m-public' runner is deprecated. Use 'sonar-m' instead — standard runners now support public repositories.
Sanity Test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Sanity Test
⚠️ The 'sonar-m-public' runner is deprecated. Use 'sonar-m' instead — standard runners now support public repositories.
Custom Rules and License Check
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Custom Rules and License Check
Back off 20.095 seconds before retry.
Custom Rules and License Check
Failed to download action 'https://codeload.github.com/actions/cache/tar.gz/27d5ce7f107fe9357f9df03efb73ab90386fccae'. Error: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Custom Rules and License Check
⚠️ The 'sonar-m-public' runner is deprecated. Use 'sonar-m' instead — standard runners now support public repositories.
Build and Unit Test on Windows
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Ruling QA (sonar-m-public, only-sonarqube-project, LATEST_RELEASE)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, actions/upload-artifact@v4, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Ruling QA (sonar-m-public, only-sonarqube-project, LATEST_RELEASE)
⚠️ The 'sonar-m-public' runner is deprecated. Use 'sonar-m' instead — standard runners now support public repositories.
Autoscan Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, actions/upload-artifact@v4, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Autoscan Tests
⚠️ The 'sonar-m-public' runner is deprecated. Use 'sonar-m' instead — standard runners now support public repositories.
Ruling QA (sonar-m-public, without-sonarqube-project, LATEST_RELEASE)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Ruling QA (sonar-m-public, without-sonarqube-project, LATEST_RELEASE)
⚠️ The 'sonar-m-public' runner is deprecated. Use 'sonar-m' instead — standard runners now support public repositories.
Test Analyze
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test Analyze
⚠️ The 'sonar-l-public' runner is deprecated. Use 'sonar-l' instead — standard runners now support public repositories.
Ruling QA (github-windows-latest-m, only-sonarqube-project, LATEST_RELEASE)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, actions/upload-artifact@v4, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Plugin QA (LATEST_RELEASE, false)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Plugin QA (LATEST_RELEASE, false)
⚠️ The 'sonar-m-public' runner is deprecated. Use 'sonar-m' instead — standard runners now support public repositories.
Ruling QA (github-windows-latest-m, without-sonarqube-project, LATEST_RELEASE)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830, actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea, hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b, runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4, SonarSource/gh-action_cache/credential-guard@v1, SonarSource/gh-action_cache/credential-setup@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/