diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-03 15:08:07 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-03 15:08:07 +0200 |
commit | 1948b660d7b3630dc2e8c2bc4b67007c0a190e14 (patch) | |
tree | 25350e0e3ee58ba12849cef691bc14ceda79afda /sonar-core | |
parent | 22c69f787adf5d1aeb1fcba62ae4ae0e3b1301be (diff) | |
download | sonarqube-1948b660d7b3630dc2e8c2bc4b67007c0a190e14.tar.gz sonarqube-1948b660d7b3630dc2e8c2bc4b67007c0a190e14.zip |
SONAR-5300 id should be a long instead of an integer
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java | 6 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java b/sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java index 7d45ab6784e..d51a9009ed5 100644 --- a/sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java +++ b/sonar-core/src/main/java/org/sonar/core/measure/db/MeasureDto.java @@ -30,7 +30,7 @@ public class MeasureDto extends Dto<MeasureKey>{ private static final String INDEX_SHOULD_BE_IN_RANGE_FROM_1_TO_5 = "Index should be in range from 1 to 5"; - private Integer id; + private Long id; private String metricKey; @@ -48,11 +48,11 @@ public class MeasureDto extends Dto<MeasureKey>{ // Nothing here } - public Integer getId() { + public Long getId() { return id; } - public MeasureDto setId(Integer id) { + public MeasureDto setId(Long id) { this.id = id; return this; } diff --git a/sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java b/sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java index 64171ee337a..833efb19116 100644 --- a/sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java +++ b/sonar-core/src/test/java/org/sonar/core/measure/db/MeasureDtoTest.java @@ -30,7 +30,7 @@ public class MeasureDtoTest { @Test public void test_getter_and_setter() throws Exception { MeasureDto measureDto = MeasureDto.createFor(MeasureKey.of("component", "metric")) - .setId(10) + .setId(10L) .setValue(2d) .setTextValue("text value") .setData(new byte[]{}) |