From 5bde32c2ca82a35e3a862db9361728b41fca843a Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Thu, 15 Dec 2011 22:35:23 +0400 Subject: [PATCH] Fix violations --- .../sonar/api/rules/Iso9126RulesCategories.java | 14 +++++++++----- .../sonar/server/charts/deprecated/BaseChart.java | 12 ++++++++++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Iso9126RulesCategories.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Iso9126RulesCategories.java index 7937fd9dab8..1dc2448e43d 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Iso9126RulesCategories.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Iso9126RulesCategories.java @@ -32,15 +32,19 @@ public final class Iso9126RulesCategories { } public static final RulesCategory RELIABILITY = new RulesCategory("Reliability", - "The extent to which the project can be expected to perform its intended function with rescission. Some examples : are loop indexes range tested? Is input data checked for range errors ? Is divide-by-zero avoided ? Is exception handling provided ?"); + "The extent to which the project can be expected to perform its intended function with rescission." + + " Some examples : are loop indexes range tested? Is input data checked for range errors ? Is divide-by-zero avoided ? Is exception handling provided ?"); public static final RulesCategory EFFICIENCY = new RulesCategory("Efficiency", - "The extent to which the project fulfills its purpose without waste of resources. This means resources in the sense of memory utilisation and processor speed."); + "The extent to which the project fulfills its purpose without waste of resources." + + " This means resources in the sense of memory utilisation and processor speed."); public static final RulesCategory PORTABILITY = new RulesCategory("Portability", - "The extent to which the project can be operated easily and well on multiple computer configurations. Portability can mean both between different hardware setups and between different operating systems -- such as running on both Mac OS X and GNU/Linux."); + "The extent to which the project can be operated easily and well on multiple computer configurations." + + " Portability can mean both between different hardware setups and between different operating systems -- such as running on both Mac OS X and GNU/Linux."); public static final RulesCategory USABILITY = new RulesCategory("Usability", - "The extent to which the project can be understood, learned, operated, attractive and compliant with usability regulations and guidelines. It commonly relies on naming conventions and formatting rules."); + "The extent to which the project can be understood, learned, operated, attractive and compliant with usability regulations and guidelines." + + " It commonly relies on naming conventions and formatting rules."); public static final RulesCategory MAINTAINABILITY = new RulesCategory("Maintainability", - "The extent to which the project facilitates updating to satisfy new requirements. Thus the the project which is maintainable should be not complex."); + "The extent to which the project facilitates updating to satisfy new requirements. Thus the the project which is maintainable should be not complex."); public static final List ALL = Collections.unmodifiableList(Arrays.asList(RELIABILITY, EFFICIENCY, PORTABILITY, USABILITY, MAINTAINABILITY)); } diff --git a/sonar-server/src/main/java/org/sonar/server/charts/deprecated/BaseChart.java b/sonar-server/src/main/java/org/sonar/server/charts/deprecated/BaseChart.java index d1776177fc0..cdbbf3aa431 100644 --- a/sonar-server/src/main/java/org/sonar/server/charts/deprecated/BaseChart.java +++ b/sonar-server/src/main/java/org/sonar/server/charts/deprecated/BaseChart.java @@ -37,7 +37,15 @@ public abstract class BaseChart { public static final Color BASE_COLOR_LIGHT = new Color(204, 204, 204); public static final Color SERIE_BORDER_COLOR = new Color(67, 119, 166); - public static final Color[] COLORS = {new Color(5, 141, 199), new Color(80,180,50),new Color(237,86,27), new Color(237,239,0), new Color(36,203,229), new Color(100,229,114), new Color(255,150,85)}; + public static final Color[] COLORS = { + new Color(5, 141, 199), + new Color(80, 180, 50), + new Color(237, 86, 27), + new Color(237, 239, 0), + new Color(36, 203, 229), + new Color(100, 229, 114), + new Color(255, 150, 85) + }; public static final int FONT_SIZE = 13; @@ -130,6 +138,6 @@ public abstract class BaseChart { return new BasicStroke(width, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, - 10.0f, new float[]{5.0f}, 0.0f); + 10.0f, new float[] { 5.0f }, 0.0f); } } -- 2.39.5