Skip to content

Commit 291fe43

Browse files
authored
Merge pull request #35 from imsweb/sonarqube-fixes
Sonarqube fixes
2 parents c83bd5e + 93e5404 commit 291fe43

28 files changed

Lines changed: 37 additions & 89 deletions

.github/workflows/integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
1517
- name: Set up JDK
1618
uses: actions/setup-java@v2
1719
with:

src/main/java/com/imsweb/seerapi/client/disease/DateRange.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ public class DateRange {
99
@JsonProperty("end")
1010
protected String _endDate;
1111

12-
/**
13-
* Default constructor
14-
*/
15-
public DateRange() {
16-
}
17-
1812
public String getStartDate() {
1913
return _startDate;
2014
}

src/main/java/com/imsweb/seerapi/client/disease/DateRangeString.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ public class DateRangeString extends DateRange {
77
@JsonProperty("value")
88
protected String _value;
99

10-
/**
11-
* Default constructor
12-
*/
13-
public DateRangeString() {
14-
}
15-
1610
public String getValue() {
1711
return _value;
1812
}

src/main/java/com/imsweb/seerapi/client/disease/DiseaseChangelogResults.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ public class DiseaseChangelogResults extends PublishableChangelogResults {
1313

1414
protected List<DiseaseChangelog> _changelogs;
1515

16-
/**
17-
* Default constructor
18-
*/
19-
public DiseaseChangelogResults() {
20-
}
21-
2216
@JsonProperty("changelogs")
2317
public List<DiseaseChangelog> getChangelogs() {
2418
return _changelogs;

src/main/java/com/imsweb/seerapi/client/glossary/GlossaryChangelogResults.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ public class GlossaryChangelogResults extends PublishableChangelogResults {
1313

1414
protected List<GlossaryChangelog> _changelogs;
1515

16-
/**
17-
* Default constructor
18-
*/
19-
public GlossaryChangelogResults() {
20-
}
21-
2216
@JsonProperty("changelogs")
2317
public List<GlossaryChangelog> getChangelogs() {
2418
return _changelogs;

src/main/java/com/imsweb/seerapi/client/mph/MphOutput.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public class MphOutput {
1616
private String _groupId;
1717
@JsonProperty("step")
1818
private String _step;
19-
public MphOutput() {
20-
}
2119

2220
public Result getResult() {
2321
return _result;

src/main/java/com/imsweb/seerapi/client/mph/MphRule.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ public class MphRule {
2222
@JsonProperty("examples")
2323
private List<String> _examples;
2424

25-
public MphRule() {
26-
}
27-
2825
public String getGroupId() {
2926
return _groupId;
3027
}

src/main/java/com/imsweb/seerapi/client/naaccr/NaaccrXmlField.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ public class NaaccrXmlField {
3939
@JsonProperty("documentation")
4040
protected String _documentation;
4141

42-
public NaaccrXmlField() {
43-
}
44-
4542
public String getNaaccrId() {
4643
return _naaccrId;
4744
}

src/main/java/com/imsweb/seerapi/client/ndc/NdcSearch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public Map<String, String> paramMap() {
115115
if (getHasSeerInfo() != null)
116116
params.put("has_seer_info", getHasSeerInfo().toString());
117117
if (getIncludeRemoved() != null)
118-
params.put("include_removed", getIncludeRemoved() ? "true" : "false");
118+
params.put("include_removed", Boolean.TRUE.equals(getIncludeRemoved()) ? "true" : "false");
119119
if (getAddedSince() != null)
120120
params.put("added_since", getAddedSince());
121121
if (getModifiedSince() != null)

src/main/java/com/imsweb/seerapi/client/publishable/PublishableChangelogResults.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ public class PublishableChangelogResults {
1111
protected Integer _count;
1212
protected Integer _offset;
1313

14-
/**
15-
* Default constructor
16-
*/
17-
public PublishableChangelogResults() {
18-
}
19-
2014
@JsonProperty("total")
2115
public Long getTotal() {
2216
return _total;

0 commit comments

Comments
 (0)