Skip to content

Commit

Permalink
more tweaks per review of the PR (#8372)
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Jul 14, 2022
1 parent d1504be commit dbf1309
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* You can think of it as an XOAI Item wrapper around the
* Dataverse OAIRecord entity.
*/
public class DataverseXoaiItem implements Item {
public final class DataverseXoaiItem implements Item {

public DataverseXoaiItem(OAIRecord oaiRecord) {
super();
Expand All @@ -29,7 +29,6 @@ public DataverseXoaiItem(OAIRecord oaiRecord) {
if (!StringUtil.isEmpty(oaiRecord.getSetName())) {
oaisets.add(new Set(oaiRecord.getSetName()));
}
about = new ArrayList<>();
}

private OAIRecord oaiRecord;
Expand All @@ -53,13 +52,6 @@ public DataverseXoaiItem withDataset(Dataset dataset) {
return this;
}

private List<About> about;

@Override
public List<About> getAbout() {
return about;
}

private Metadata metadata;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public class DataverseXoaiItemRepository implements ItemRepository {
private String serverUrl;

public DataverseXoaiItemRepository (OAIRecordServiceBean recordService, DatasetServiceBean datasetService, String serverUrl) {
super();
this.recordService = recordService;
this.datasetService = datasetService;
this.serverUrl = serverUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class DataverseXoaiSetRepository implements SetRepository {
private OAISetServiceBean setService;

public DataverseXoaiSetRepository (OAISetServiceBean setService) {
super();
this.setService = setService;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1204,4 +1204,4 @@ public Map<String, String[]> getCurationLabels() {
}
return labelMap;
}
}
}

0 comments on commit dbf1309

Please sign in to comment.