Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Mar 15, 2021
1 parent 963db04 commit 5b992a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ private List<String> getIgnoredFields(ResourceMetadata
* @param content the content
*/
public void buildTextUriContent(Content content) {
if (content.containsKey(RestMediaTypes.TEXT_URI_LIST_VALUE))
content.put(RestMediaTypes.TEXT_URI_LIST_VALUE, new MediaType().schema(new StringSchema()));
content.computeIfPresent(RestMediaTypes.TEXT_URI_LIST_VALUE,
(key, value) -> new MediaType().schema(new StringSchema()));
}

}

0 comments on commit 5b992a8

Please sign in to comment.