From 7cce640a1badb7b7658d9a8724bd3ed1fefd6263 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 19 Jun 2019 10:28:41 +0200 Subject: [PATCH] Clean old remains of the preview mode --- .../sonar/core/component/ComponentKeys.java | 22 ------------------- .../core/component/ComponentKeysTest.java | 10 --------- .../AnalysisContextReportPublisher.java | 8 +------ .../scanner/scan/ProjectReactorValidator.java | 22 ++++--------------- .../AnalysisContextReportPublisherTest.java | 16 +------------- .../scan/ProjectReactorValidatorTest.java | 10 +-------- 6 files changed, 7 insertions(+), 81 deletions(-) diff --git a/sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java b/sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java index e4d59ea1dd8..79330b39fe1 100644 --- a/sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java +++ b/sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java @@ -34,8 +34,6 @@ public final class ComponentKeys { */ private static final String VALID_PROJECT_KEY_REGEXP = "[^\\p{javaWhitespace}]+"; - private static final String VALID_PROJECT_KEY_ISSUES_MODE_REGEXP = "[\\p{Alnum}\\-_.:/]*[\\p{Alpha}\\-_.:/]+[\\p{Alnum}\\-_.:/]*"; - /* * Allowed characters are alphanumeric, '-', '_', '.' and '/' */ @@ -78,26 +76,6 @@ public final class ComponentKeys { checkArgument(isValidProjectKey(keyCandidate), "Malformed key for '%s'. %s", keyCandidate, "Project key cannot be empty nor contain whitespaces."); } - /** - *

Test if given parameter is valid for a project. Valid format is:

- * - * - * @return true if keyCandidate can be used for a project in issues mode - */ - public static boolean isValidProjectKeyIssuesMode(String keyCandidate) { - return keyCandidate.matches(VALID_PROJECT_KEY_ISSUES_MODE_REGEXP); - } - /** *

Test if given parameter is valid for a branch. Valid format is:

*