Skip to content

Commit

Permalink
docs: fix up javadoc and add log warn
Browse files Browse the repository at this point in the history
  • Loading branch information
berezovskyi committed Nov 5, 2024
1 parent c03f7ef commit 81c3355
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ private synchronized void initializeRdf() {
}

/**
* Extracts a ResourceInfo resource if one and only one has the same prefix as the query URI.
* Extracts a ResourceInfo resource if one and only one has a property with the nextPage
* predicate.
*
* @param responseInfos from OSLC Query results
* @return a ResourceInfo resource if one satisfies the conditions; null if none satisfy
* @throws IllegalStateException if multiple resources satisfy the same condition
*/
private Resource tryFindOnlyWithNextPage(List<Resource> responseInfos) {
Property nextPagePredicate = rdfModel.getProperty(OslcConstants.OSLC_CORE_NAMESPACE,
Expand All @@ -195,6 +195,9 @@ private Resource tryFindOnlyWithNextPage(List<Resource> responseInfos) {
if (responsesWithNextPage.size() == 1) {
return responsesWithNextPage.get(0);
}
else if (responsesWithNextPage.size() > 1) {
log.warn("Multiple ResponseInfo objects found with nextPage predicate");
}
return null;
}

Expand Down

0 comments on commit 81c3355

Please sign in to comment.