From b150482f1f4ea43bc42b324994d1d1e852de6320 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Fri, 27 Apr 2012 17:05:35 +0200 Subject: Code cleaning : Add @Override annotations --- .../java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java | 1 + .../src/main/java/org/sonar/plugins/checkstyle/SonarWayProfile.java | 1 + .../main/java/org/sonar/plugins/checkstyle/SunConventionsProfile.java | 1 + 3 files changed, 3 insertions(+) (limited to 'plugins/sonar-checkstyle-plugin/src/main') diff --git a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java index bbcfdc192a7..700f622bb56 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java +++ b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java @@ -55,6 +55,7 @@ public class CheckstyleProfileExporter extends ProfileExporter { this(new BaseConfiguration()); } + @Override public void exportProfile(RulesProfile profile, Writer writer) { try { ListMultimap activeRulesByConfigKey = arrangeByConfigKey(profile.getActiveRulesByRepository(CheckstyleConstants.REPOSITORY_KEY)); diff --git a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/SonarWayProfile.java b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/SonarWayProfile.java index d53ae1fb3ec..dc938a32322 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/SonarWayProfile.java +++ b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/SonarWayProfile.java @@ -32,6 +32,7 @@ public final class SonarWayProfile extends ProfileDefinition { this.xmlProfileParser = xmlProfileParser; } + @Override public RulesProfile createProfile(ValidationMessages messages) { return xmlProfileParser.parseResource(getClass().getClassLoader(), "org/sonar/plugins/checkstyle/profile-sonar-way.xml", messages); } diff --git a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/SunConventionsProfile.java b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/SunConventionsProfile.java index 290c368f680..2a926fcfe66 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/SunConventionsProfile.java +++ b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/SunConventionsProfile.java @@ -33,6 +33,7 @@ public final class SunConventionsProfile extends ProfileDefinition { } + @Override public RulesProfile createProfile(ValidationMessages messages) { return xmlProfileParser.parseResource(getClass().getClassLoader(), "org/sonar/plugins/checkstyle/profile-sun-conventions.xml", messages); } -- cgit v1.2.3