From eea84c91e825821cf85d1fb32c0056fb74c1594b Mon Sep 17 00:00:00 2001 From: Jacek Date: Mon, 8 Feb 2021 13:29:27 +0100 Subject: SONAR-14443 Deprecate 'sansTop25' param in WS --- .../main/java/org/sonar/server/security/SecurityStandards.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'server/sonar-server-common') diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java b/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java index b0709224372..dfa8ad11a96 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java @@ -59,6 +59,11 @@ public final class SecurityStandards { private static final Set INSECURE_CWE = new HashSet<>(asList("89", "78", "79", "434", "352", "601")); private static final Set RISKY_CWE = new HashSet<>(asList("120", "22", "494", "829", "676", "131", "134", "190")); private static final Set POROUS_CWE = new HashSet<>(asList("306", "862", "798", "311", "807", "250", "863", "732", "327", "307", "759")); + + /** + * @deprecated SansTop25 report is outdated and will be removed in future versions + */ + @Deprecated public static final Map> CWES_BY_SANS_TOP_25 = ImmutableMap.of( SANS_TOP_25_INSECURE_INTERACTION, INSECURE_CWE, SANS_TOP_25_RISKY_RESOURCE, RISKY_CWE, @@ -199,6 +204,10 @@ public final class SecurityStandards { return toOwaspTop10(standards); } + /** + * @deprecated SansTop25 report is outdated and will be removed in future versions + */ + @Deprecated public Set getSansTop25() { return toSansTop25(cwe); } -- cgit v1.2.3