From ea7c236034f358a84794b0b5ef71474a07559e41 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 17 Jan 2014 17:24:11 +0100 Subject: [PATCH] Fix some quality flaws --- .../org/sonar/api/rule/RuleDefinitions.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rule/RuleDefinitions.java b/sonar-plugin-api/src/main/java/org/sonar/api/rule/RuleDefinitions.java index ffc553ddccc..85bb7bddec6 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rule/RuleDefinitions.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rule/RuleDefinitions.java @@ -44,7 +44,7 @@ public interface RuleDefinitions extends ServerExtension { /** * Instantiated by core but not by plugins */ - static class Context { + class Context { private final Map repositoriesByKey = Maps.newHashMap(); private final ListMultimap extendedRepositoriesByKey = ArrayListMultimap.create(); @@ -85,7 +85,7 @@ public interface RuleDefinitions extends ServerExtension { } } - static interface NewExtendedRepository { + interface NewExtendedRepository { NewRule newRule(String ruleKey); /** @@ -135,11 +135,11 @@ public interface RuleDefinitions extends ServerExtension { void done(); } - static interface NewRepository extends NewExtendedRepository { + interface NewRepository extends NewExtendedRepository { NewRepository setName(String s); } - static class NewRepositoryImpl implements NewRepository { + class NewRepositoryImpl implements NewRepository { private final Context context; private final boolean extended; private final String key; @@ -198,7 +198,7 @@ public interface RuleDefinitions extends ServerExtension { } } - static interface ExtendedRepository { + interface ExtendedRepository { String key(); String language(); @@ -209,11 +209,11 @@ public interface RuleDefinitions extends ServerExtension { List rules(); } - static interface Repository extends ExtendedRepository { + interface Repository extends ExtendedRepository { String name(); } - static class RepositoryImpl implements Repository { + class RepositoryImpl implements Repository { private final String key, language, name; private final Map rulesByKey; @@ -274,7 +274,7 @@ public interface RuleDefinitions extends ServerExtension { } - static class NewRule { + class NewRule { private final String repoKey, key; private String name, htmlDescription, metadata, defaultSeverity = Severity.MAJOR; private boolean template; @@ -369,11 +369,11 @@ public interface RuleDefinitions extends ServerExtension { } } - static enum Status { + enum Status { BETA, DEPRECATED, READY } - static class Rule { + class Rule { private final Repository repository; private final String repoKey, key, name, htmlDescription, metadata, defaultSeverity; private final boolean template; @@ -475,7 +475,7 @@ public interface RuleDefinitions extends ServerExtension { } - static class NewParam { + class NewParam { private final String key; private String name, description, defaultValue; private RuleParamType type = RuleParamType.STRING; @@ -509,7 +509,7 @@ public interface RuleDefinitions extends ServerExtension { } } - static class Param { + class Param { private final String key, name, description, defaultValue; private final RuleParamType type; -- 2.39.5