This is an automated email from the ASF dual-hosted git repository. jamesbognar pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/juneau.git
commit 381d95f3732a259704cd4fd383f2c8cd39a271e0 Author: James Bognar <[email protected]> AuthorDate: Tue Jul 21 14:00:03 2026 -0400 Fix raw-type BasicHttpResponse references in HttpResponses (TODO-273 follow-up) BasicHttpResponse became a generic CRTP root (BasicHttpResponse<SELF extends BasicHttpResponse<SELF>>) in TODO-273, leaving several raw-type return types in HttpResponses. Parameterized each to BasicHttpResponse<?>. Co-authored-by: Cursor <[email protected]> --- .../src/main/java/org/apache/juneau/http/HttpResponses.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/HttpResponses.java b/juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/HttpResponses.java index 55148fa3bb..3f202c0b12 100644 --- a/juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/HttpResponses.java +++ b/juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/HttpResponses.java @@ -93,22 +93,22 @@ public final class HttpResponses { // ------------------------------------------------------------------------------------------------------------------ /** @param location The redirect location. Can be <jk>null</jk>. @return A new {@code 301 Moved Permanently} response. */ - public static BasicHttpResponse movedPermanently(String location) { return new MovedPermanently().withHeader("Location", location); } + public static BasicHttpResponse<?> movedPermanently(String location) { return new MovedPermanently().withHeader("Location", location); } /** @param location The redirect location. Can be <jk>null</jk>. @return A new {@code 302 Found} response. */ - public static BasicHttpResponse found(String location) { return new Found().withHeader("Location", location); } + public static BasicHttpResponse<?> found(String location) { return new Found().withHeader("Location", location); } /** @param location The redirect location. Can be <jk>null</jk>. @return A new {@code 303 See Other} response. */ - public static BasicHttpResponse seeOther(String location) { return new SeeOther().withHeader("Location", location); } + public static BasicHttpResponse<?> seeOther(String location) { return new SeeOther().withHeader("Location", location); } /** @return A new {@code 304 Not Modified} response. */ public static NotModified notModified() { return new NotModified(); } /** @param location The redirect location. Can be <jk>null</jk>. @return A new {@code 307 Temporary Redirect} response. */ - public static BasicHttpResponse temporaryRedirect(String location) { return new TemporaryRedirect().withHeader("Location", location); } + public static BasicHttpResponse<?> temporaryRedirect(String location) { return new TemporaryRedirect().withHeader("Location", location); } /** @param location The redirect location. Can be <jk>null</jk>. @return A new {@code 308 Permanent Redirect} response. */ - public static BasicHttpResponse permanentRedirect(String location) { return new PermanentRedirect().withHeader("Location", location); } + public static BasicHttpResponse<?> permanentRedirect(String location) { return new PermanentRedirect().withHeader("Location", location); } // ------------------------------------------------------------------------------------------------------------------ // 4xx Client Errors
