From bf4635f2145ce38ee3a198c4fb5ea9438793647c Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Fri, 17 Jun 2011 14:44:03 +0400 Subject: Fix violations --- .../src/main/java/org/sonar/batch/bootstrap/JdbcDriverHolder.java | 2 +- sonar-check-api/src/main/java/org/sonar/check/Message.java | 3 +++ sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/JdbcDriverHolder.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/JdbcDriverHolder.java index 427ac20e3ab..44daab41ad2 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/JdbcDriverHolder.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/JdbcDriverHolder.java @@ -36,7 +36,7 @@ import java.util.List; */ public class JdbcDriverHolder { - private static Logger LOG = LoggerFactory.getLogger(JdbcDriverHolder.class); + private static final Logger LOG = LoggerFactory.getLogger(JdbcDriverHolder.class); private JdbcDriverClassLoader classLoader; public JdbcDriverHolder(ArtifactDownloader extensionDownloader) { diff --git a/sonar-check-api/src/main/java/org/sonar/check/Message.java b/sonar-check-api/src/main/java/org/sonar/check/Message.java index 41ba1baf1e2..f0896fbdaf1 100644 --- a/sonar-check-api/src/main/java/org/sonar/check/Message.java +++ b/sonar-check-api/src/main/java/org/sonar/check/Message.java @@ -22,6 +22,9 @@ package org.sonar.check; import java.util.Locale; +/** + * @deprecated in 2.3 + */ @Deprecated public interface Message { diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java index 8780c8b205e..a689a25bb53 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Project.java @@ -382,6 +382,7 @@ public class Project extends Resource { * * @deprecated since 2.6. See http://jira.codehaus.org/browse/SONAR-2126 */ + @Deprecated public Project setFileSystem(ProjectFileSystem fs) { this.fileSystem = fs; return this; -- cgit v1.2.3