From ec15548ef761899b1162f9b8210196e0b4e222be Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 22 Mar 2013 10:49:35 +0100 Subject: SONAR-3879 Replace rule status enumeration in the annotation by a string --- .../src/main/java/org/sonar/check/Rule.java | 2 +- .../src/main/java/org/sonar/check/Status.java | 27 ---------------------- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 sonar-check-api/src/main/java/org/sonar/check/Status.java (limited to 'sonar-check-api/src') diff --git a/sonar-check-api/src/main/java/org/sonar/check/Rule.java b/sonar-check-api/src/main/java/org/sonar/check/Rule.java index 391ca5a4043..d754f488e4a 100644 --- a/sonar-check-api/src/main/java/org/sonar/check/Rule.java +++ b/sonar-check-api/src/main/java/org/sonar/check/Rule.java @@ -65,5 +65,5 @@ public @interface Rule { * The rule status. Can be READY, BETA or DEPRECATED * @since 3.6 */ - Status status() default Status.READY; + String status() default "READY"; } diff --git a/sonar-check-api/src/main/java/org/sonar/check/Status.java b/sonar-check-api/src/main/java/org/sonar/check/Status.java deleted file mode 100644 index 2f74e8b1b22..00000000000 --- a/sonar-check-api/src/main/java/org/sonar/check/Status.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2012 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.check; - -/** - * @since 3.6 - */ -public enum Status { - READY, BETA, DEPRECATED; -} -- cgit v1.2.3