Skip to content

Commit

Permalink
Fixed checkstyle issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
kburger committed Dec 14, 2023
1 parent 549c646 commit 4211e22
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,9 @@ private String createLink(String entityUrl, String childPrefix, int page, int si

private void enhanceWithSignposting(HttpServletResponse response, IRI entityUri, Model resultRdf) {
// author
Models.getProperty(resultRdf, entityUri, DCTERMS.PUBLISHER).ifPresent(pub ->
addSignpostingHeader(response, pub, "author"));
Models.getProperty(resultRdf, entityUri, DCTERMS.PUBLISHER).ifPresent(pub -> {
addSignpostingHeader(response, pub, "author");
});

// cite-as
addSignpostingHeader(response, entityUri, "cite-as");
Expand All @@ -470,12 +471,14 @@ private void enhanceWithSignposting(HttpServletResponse response, IRI entityUri,
// TODO

// type
Models.getProperties(resultRdf, entityUri, RDF.TYPE).forEach(type ->
addSignpostingHeader(response, type, "type"));
Models.getProperties(resultRdf, entityUri, RDF.TYPE).forEach(type -> {
addSignpostingHeader(response, type, "type");
});

// license
Models.getPropertyIRI(resultRdf, entityUri, DCTERMS.LICENSE).ifPresent(license ->
addSignpostingHeader(response, license, "license")/*response.addHeader(HttpHeaders.LINK, "<" + license + "> ; rel=\"license\"")*/);
Models.getPropertyIRI(resultRdf, entityUri, DCTERMS.LICENSE).ifPresent(license -> {
addSignpostingHeader(response, license, "license");
});

// item
// TODO
Expand Down

0 comments on commit 4211e22

Please sign in to comment.