SLCORE-2249 fix: resolve 5 SonarQube issues (5 minor)#1930
SLCORE-2249 fix: resolve 5 SonarQube issues (5 minor)#1930sonarqube-agent[bot] wants to merge 1 commit intomasterfrom
Conversation
Fixed issues: - AZv9xbN2ClKDVB-iUu2K for java:S1874 rule - AZv9xbN2ClKDVB-iUu2I for java:S1874 rule - AZv9xbN2ClKDVB-iUu2J for java:S1874 rule - AZv9xbN2ClKDVB-iUu2G for java:S1874 rule - AZv9xbN2ClKDVB-iUu2H for java:S1874 rule Generated by SonarQube Agent (task: ea53ad14-a93f-491a-8997-e13c85420b56)
SummaryRemoves deprecated API usage in test code. All 5 changes replace calls to the deprecated 6-parameter What reviewers should knowAll changes are in
|
|





This PR includes automated code changes to address 5 SonarQube issues: MINOR (5).
View Project in SonarCloud
Fixed Issues
java:S1874 - Remove this use of "AnalyzeFilesAndTrackParams"; it is deprecated. • MINOR • View issue
Location:
sonarlint-core-parent:medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java:1078Why is this an issue?
Code is sometimes annotated as deprecated by developers maintaining libraries or APIs to indicate that the method, class, or other programming element is no longer recommended for use. This is typically due to the introduction of a newer or more effective alternative. For example, when a better solution has been identified, or when the existing code presents potential errors or security risks.
What changed
Replaces the deprecated 6-parameter AnalyzeFilesAndTrackParams constructor (which includes a timestamp argument via System.currentTimeMillis()) at line 1078 with the non-deprecated 5-parameter constructor, removing the use of the deprecated API.
java:S1874 - Remove this use of "AnalyzeFilesAndTrackParams"; it is deprecated. • MINOR • View issue
Location:
sonarlint-core-parent:medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java:1081Why is this an issue?
Code is sometimes annotated as deprecated by developers maintaining libraries or APIs to indicate that the method, class, or other programming element is no longer recommended for use. This is typically due to the introduction of a newer or more effective alternative. For example, when a better solution has been identified, or when the existing code presents potential errors or security risks.
What changed
Replaces the deprecated 6-parameter AnalyzeFilesAndTrackParams constructor (which includes a timestamp argument via System.currentTimeMillis()) at line 1081 with the non-deprecated 5-parameter constructor, removing the use of the deprecated API.
java:S1874 - Remove this use of "AnalyzeFilesAndTrackParams"; it is deprecated. • MINOR • View issue
Location:
sonarlint-core-parent:medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java:1109Why is this an issue?
Code is sometimes annotated as deprecated by developers maintaining libraries or APIs to indicate that the method, class, or other programming element is no longer recommended for use. This is typically due to the introduction of a newer or more effective alternative. For example, when a better solution has been identified, or when the existing code presents potential errors or security risks.
What changed
Replaces the deprecated 6-parameter AnalyzeFilesAndTrackParams constructor (which includes a timestamp argument via System.currentTimeMillis()) at line 1109 with the non-deprecated 5-parameter constructor, removing the use of the deprecated API.
java:S1874 - Remove this use of "AnalyzeFilesAndTrackParams"; it is deprecated. • MINOR • View issue
Location:
sonarlint-core-parent:medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java:1116Why is this an issue?
Code is sometimes annotated as deprecated by developers maintaining libraries or APIs to indicate that the method, class, or other programming element is no longer recommended for use. This is typically due to the introduction of a newer or more effective alternative. For example, when a better solution has been identified, or when the existing code presents potential errors or security risks.
What changed
Replaces the deprecated 6-parameter AnalyzeFilesAndTrackParams constructor (which includes a timestamp argument via System.currentTimeMillis()) at line 1116 with the non-deprecated 5-parameter constructor, removing the use of the deprecated API.
java:S1874 - Remove this use of "AnalyzeFilesAndTrackParams"; it is deprecated. • MINOR • View issue
Location:
sonarlint-core-parent:medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java:1141Why is this an issue?
Code is sometimes annotated as deprecated by developers maintaining libraries or APIs to indicate that the method, class, or other programming element is no longer recommended for use. This is typically due to the introduction of a newer or more effective alternative. For example, when a better solution has been identified, or when the existing code presents potential errors or security risks.
What changed
Replaces the deprecated 6-parameter AnalyzeFilesAndTrackParams constructor (which includes a timestamp argument via System.currentTimeMillis()) at line 1141 with the non-deprecated 5-parameter constructor, removing the use of the deprecated API.
SonarQube Remediation Agent uses AI. Check for mistakes.