diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-07-24 08:17:30 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-07-24 08:17:30 +0200 |
commit | 3d1ad739f8a505815480b582ee1948ad4e4220f8 (patch) | |
tree | 17c2931f23c1b238d679248c27c5d1872fb23ff2 /sonar-plugin-api/src/main/java/org/sonar/api | |
parent | 0bbb1d5fd848c45ab7c11a50d5fb547dc3e54f07 (diff) | |
download | sonarqube-3d1ad739f8a505815480b582ee1948ad4e4220f8.tar.gz sonarqube-3d1ad739f8a505815480b582ee1948ad4e4220f8.zip |
SONAR-3690 do not use getBytes(UTF-8) in the constructor of MeasureData
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/database/model/MeasureData.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/MeasureData.java b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/MeasureData.java index d52e0e58ca0..3bd82f2da86 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/MeasureData.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/MeasureData.java @@ -53,12 +53,7 @@ public class MeasureData extends BaseIdentifiable { public MeasureData(MeasureModel measure, String dataString) { this.measure = measure; - try { - this.data = dataString.getBytes(Charsets.UTF_8.name()); - } catch (UnsupportedEncodingException e) { - // how is it possible to not support UTF-8 ? - Throwables.propagate(e); - } + this.data = dataString.getBytes(); } public MeasureData() { |