aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-05-13 01:05:13 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-05-13 01:05:13 +0200
commit48b69e888b43b162a53d7e6fbd14aa499a056105 (patch)
tree36533320e8d4beda37c587fe81fff9324d1b2857 /sonar-plugin-api/src/main/java
parent0fe25123678e29293ac6d5cc8a7973c5c0cda2ca (diff)
downloadsonarqube-48b69e888b43b162a53d7e6fbd14aa499a056105.tar.gz
sonarqube-48b69e888b43b162a53d7e6fbd14aa499a056105.zip
SONAR-5064 Remove active rule notes
Diffstat (limited to 'sonar-plugin-api/src/main/java')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java36
1 files changed, 17 insertions, 19 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java
index 4bee3f81fa3..175ca5f1a13 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java
@@ -25,6 +25,7 @@ import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.sonar.api.profiles.RulesProfile;
+import javax.annotation.CheckForNull;
import javax.persistence.*;
import java.util.ArrayList;
@@ -64,21 +65,6 @@ public class ActiveRule implements Cloneable {
@Column(name = "inheritance", updatable = true, nullable = true)
private String inheritance;
- @Lob
- @Column(name = "note_data", updatable = true, nullable = true)
- private String noteData;
-
- @Column(name = "note_user_login", updatable = true, nullable = true)
- private String noteUserLogin;
-
- @Temporal(TemporalType.TIMESTAMP)
- @Column(name = "note_created_at", updatable = true, nullable = true)
- private Date noteCreatedAt;
-
- @Temporal(TemporalType.TIMESTAMP)
- @Column(name = "note_updated_at", updatable = true, nullable = true)
- private Date noteUpdatedAt;
-
/**
* @deprecated visibility should be reduced to protected or package
*/
@@ -252,30 +238,42 @@ public class ActiveRule implements Cloneable {
/**
* @since 4.2
+ * @deprecated in 4.4. Feature dropped.
*/
+ @CheckForNull
+ @Deprecated
public String getNoteData() {
- return noteData;
+ return null;
}
/**
* @since 4.2
+ * @deprecated in 4.4. Feature dropped.
*/
+ @CheckForNull
+ @Deprecated
public String getNoteUserLogin() {
- return noteUserLogin;
+ return null;
}
/**
* @since 4.2
+ * @deprecated in 4.4. Feature dropped.
*/
+ @CheckForNull
+ @Deprecated
public Date getNoteCreatedAt() {
- return noteCreatedAt;
+ return null;
}
/**
* @since 4.2
+ * @deprecated in 4.4. Feature dropped.
*/
+ @CheckForNull
+ @Deprecated
public Date getNoteUpdatedAt() {
- return noteUpdatedAt;
+ return null;
}
@Override