diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-10-18 13:04:47 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-10-18 14:18:22 +0400 |
commit | 39215678851889b0cb86bb626461f266e9ffef81 (patch) | |
tree | 090ee689b6374f835d7d709e0d6ad37d53fbf76b /sonar-plugin-api | |
parent | cd7a0433f7b0f6f75d0764209caf31918688090d (diff) | |
download | sonarqube-39215678851889b0cb86bb626461f266e9ffef81.tar.gz sonarqube-39215678851889b0cb86bb626461f266e9ffef81.zip |
Fix violations
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java | 2 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java index 6e25699c0ac..f05288bd3c8 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java @@ -42,6 +42,6 @@ public interface I18n extends ServerComponent { * @param parameters the parameters used to format the message from the translated pattern. * @return the message formatted with the translated pattern and the given parameters */ - public abstract String message(final Locale locale, final String key, final String defaultValue, final Object... parameters); + String message(final Locale locale, final String key, final String defaultValue, final Object... parameters); } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java index aa5e7a68ee5..1c22f52d05c 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/DefaultProjectFileSystem.java @@ -168,11 +168,17 @@ public class DefaultProjectFileSystem implements ProjectFileSystem { return result; } + /** + * @deprecated in 2.6, use {@link #mainFiles(String...)} instead + */ @Deprecated public List<File> getSourceFiles(Language... langs) { return toFiles(mainFiles(getLanguageKeys(langs))); } + /** + * @deprecated in 2.6, use {@link #mainFiles(String...)} instead + */ @Deprecated public List<File> getJavaSourceFiles() { return getSourceFiles(Java.INSTANCE); @@ -182,11 +188,17 @@ public class DefaultProjectFileSystem implements ProjectFileSystem { return !mainFiles(Java.KEY).isEmpty(); } + /** + * @deprecated in 2.6, use {@link #testFiles(String...)} instead + */ @Deprecated public List<File> getTestFiles(Language... langs) { return toFiles(testFiles(getLanguageKeys(langs))); } + /** + * @deprecated in 2.6 + */ @Deprecated public boolean hasTestFiles(Language lang) { return !testFiles(lang.getKey()).isEmpty(); |