From ba029cb715b4e6fba210ca48d73289b749165946 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Mon, 7 Nov 2011 00:06:37 +0400 Subject: Fix violations --- .../sonar/plugins/findbugs/FindbugsCategory.java | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/sonar-findbugs-plugin') diff --git a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsCategory.java b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsCategory.java index d6db5e209cc..d74f90c74cd 100644 --- a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsCategory.java +++ b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsCategory.java @@ -23,24 +23,24 @@ import java.util.HashMap; import java.util.Map; public final class FindbugsCategory { - private final static Map findbugsToSonar = new HashMap(); + private final static Map FINDBUGS_TO_SONAR = new HashMap(); static { - findbugsToSonar.put("BAD_PRACTICE", "Bad practice"); - findbugsToSonar.put("CORRECTNESS", "Correctness"); - findbugsToSonar.put("MT_CORRECTNESS", "Multithreaded correctness"); - findbugsToSonar.put("I18N", "Internationalization"); - findbugsToSonar.put("EXPERIMENTAL", "Experimental"); - findbugsToSonar.put("MALICIOUS_CODE", "Malicious code"); - findbugsToSonar.put("PERFORMANCE", "Performance"); - findbugsToSonar.put("SECURITY", "Security"); - findbugsToSonar.put("STYLE", "Style"); + FINDBUGS_TO_SONAR.put("BAD_PRACTICE", "Bad practice"); + FINDBUGS_TO_SONAR.put("CORRECTNESS", "Correctness"); + FINDBUGS_TO_SONAR.put("MT_CORRECTNESS", "Multithreaded correctness"); + FINDBUGS_TO_SONAR.put("I18N", "Internationalization"); + FINDBUGS_TO_SONAR.put("EXPERIMENTAL", "Experimental"); + FINDBUGS_TO_SONAR.put("MALICIOUS_CODE", "Malicious code"); + FINDBUGS_TO_SONAR.put("PERFORMANCE", "Performance"); + FINDBUGS_TO_SONAR.put("SECURITY", "Security"); + FINDBUGS_TO_SONAR.put("STYLE", "Style"); } public static String findbugsToSonar(String findbugsCategKey) { - return findbugsToSonar.get(findbugsCategKey); + return FINDBUGS_TO_SONAR.get(findbugsCategKey); } private FindbugsCategory() { } -} \ No newline at end of file +} -- cgit v1.2.3