Skip to content

Commit d0a0003

Browse files
committed
Enhance deprecation Javadoc entry
1 parent 9f64849 commit d0a0003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rdf4j/src/main/java/com/inrupt/client/rdf4j/RDF4JBodyHandlers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private static Model responseToModel(final Response.ResponseInfo responseInfo) {
7272
* Populate a RDF4J {@link Model} with an HTTP response.
7373
*
7474
* @return an HTTP body handler
75-
* @deprecated
75+
* @deprecated Use {@link RDF4JBodyHandlers#ofRDF4JModel} instead for consistent HTTP error handling.
7676
*/
7777
public static Response.BodyHandler<Model> ofModel() {
7878
return RDF4JBodyHandlers::responseToModel;
@@ -110,7 +110,7 @@ private static Repository responseToRepository(final Response.ResponseInfo respo
110110
* Populate a RDF4J {@link Repository} with an HTTP response.
111111
*
112112
* @return an HTTP body handler
113-
* @deprecated
113+
* @deprecated Use {@link RDF4JBodyHandlers#ofRDF4JRepository} instead for consistent HTTP error handling.
114114
*/
115115
public static Response.BodyHandler<Repository> ofRepository() {
116116
return RDF4JBodyHandlers::responseToRepository;

0 commit comments

Comments
 (0)