Skip to content

Commit d99181d

Browse files
committed
Code cleanup
1 parent c83bd5e commit d99181d

13 files changed

Lines changed: 18 additions & 43 deletions

File tree

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/staging/SchemaLookup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public boolean hasDiscriminator() {
122122
for (Entry<String, String> entry : _inputs.entrySet()) {
123123
String key = entry.getKey();
124124

125-
if (StagingData.STANDARD_LOOKUP_KEYS.contains(key))
125+
if (StagingData._STANDARD_LOOKUP_KEYS.contains(key))
126126
continue;
127127

128128
String value = entry.getValue();

src/main/java/com/imsweb/seerapi/client/staging/StagingData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class StagingData {
2424
public static final String YEAR_DX_KEY = "year_dx";
2525

2626
// set of keys that are standard for all schema lookups; any other keys are considered a discriminator
27-
public static final Set<String> STANDARD_LOOKUP_KEYS = new HashSet<>(Arrays.asList(PRIMARY_SITE_KEY, HISTOLOGY_KEY));
27+
protected static final Set<String> _STANDARD_LOOKUP_KEYS = new HashSet<>(Arrays.asList(PRIMARY_SITE_KEY, HISTOLOGY_KEY));
2828

2929
private Result _result;
3030
private String _schemaId;

src/main/java/com/imsweb/seerapi/client/staging/cs/CsSchemaLookup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
import java.util.Set;
99

1010
import com.imsweb.seerapi.client.staging.SchemaLookup;
11+
import com.imsweb.seerapi.client.staging.StagingData;
1112

1213
public class CsSchemaLookup extends SchemaLookup {
1314

14-
private static final Set<String> _ALLOWED_KEYS = new HashSet<>(Arrays.asList(CsStagingData.PRIMARY_SITE_KEY, CsStagingData.HISTOLOGY_KEY, CsStagingData.SSF25_KEY));
15+
private static final Set<String> _ALLOWED_KEYS = new HashSet<>(Arrays.asList(StagingData.PRIMARY_SITE_KEY, StagingData.HISTOLOGY_KEY, CsStagingData.SSF25_KEY));
1516

1617
/**
1718
* Default constructor

src/main/java/com/imsweb/seerapi/client/staging/eod/EodSchemaLookup.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
import java.util.Set;
1010

1111
import com.imsweb.seerapi.client.staging.SchemaLookup;
12+
import com.imsweb.seerapi.client.staging.StagingData;
1213
import com.imsweb.seerapi.client.staging.eod.EodStagingData.EodInput;
1314

1415
public class EodSchemaLookup extends SchemaLookup {
1516

1617
private static final Set<String> _ALLOWED_KEYS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(
17-
EodStagingData.PRIMARY_SITE_KEY,
18-
EodStagingData.HISTOLOGY_KEY,
18+
StagingData.PRIMARY_SITE_KEY,
19+
StagingData.HISTOLOGY_KEY,
1920
EodInput.SEX.toString(),
2021
EodInput.DISCRIMINATOR_1.toString(),
2122
EodInput.DISCRIMINATOR_2.toString())));

src/test/java/com/imsweb/seerapi/client/glossary/GlossaryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ public void testGlossaryMatch() throws IOException {
159159

160160
Set<KeywordMatch> matches = _GLOSSARY.match(text, null, true).execute().body();
161161
Assert.assertNotNull(matches);
162-
Assert.assertEquals(matches.size(), 1);
162+
Assert.assertEquals(1, matches.size());
163163

164164
matches = _GLOSSARY.match(text, EnumSet.of(GENERAL), true).execute().body();
165165
Assert.assertNotNull(matches);
166-
Assert.assertEquals(matches.size(), 0);
166+
Assert.assertEquals(0, matches.size());
167167
}
168168

169169
}

0 commit comments

Comments
 (0)