From 06e9619b3461aa21cb5918a1fbd69f9cdad52497 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 16 Mar 2016 12:10:50 +0100 Subject: [PATCH] SONAR-7440 Remove remaining SQALE words --- .../org/sonar/server/computation/qualitymodel/RatingGrid.java | 2 +- .../sonar/server/computation/qualitymodel/RatingSettings.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingGrid.java b/server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingGrid.java index 02826a50db9..4b9c7e8f3e4 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingGrid.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingGrid.java @@ -38,7 +38,7 @@ public class RatingGrid { return rating; } } - throw MessageException.of("The SQALE density value should be between 0 and " + Double.MAX_VALUE + " and got " + density); + throw MessageException.of("The rating density value should be between 0 and " + Double.MAX_VALUE + " and got " + density); } double getGradeLowerBound(Rating rating) { diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingSettings.java b/server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingSettings.java index aba96bdbd1e..b5766e939ee 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingSettings.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/qualitymodel/RatingSettings.java @@ -64,7 +64,7 @@ public class RatingSettings { } return new RatingGrid(grid); } catch (Exception e) { - throw new IllegalArgumentException("The SQALE rating grid is incorrect. Expected something similar to '" + throw new IllegalArgumentException("The rating grid is incorrect. Expected something similar to '" + RATING_GRID_DEF_VALUES + "' and got '" + settings.getString(RATING_GRID) + "'", e); } @@ -89,7 +89,7 @@ public class RatingSettings { try { return Long.parseLong(settings.getString(DEVELOPMENT_COST)); } catch (NumberFormatException e) { - throw new IllegalArgumentException("The value of the SQALE property '" + DEVELOPMENT_COST + throw new IllegalArgumentException("The value of the development cost property '" + DEVELOPMENT_COST + "' is incorrect. Expected long but got '" + settings.getString(DEVELOPMENT_COST) + "'", e); } } -- 2.39.5