From a6a7a931795ba09ef3ad803cc22d58c89cdd433c Mon Sep 17 00:00:00 2001 From: izeye Date: Thu, 25 Nov 2021 23:11:25 +0900 Subject: [PATCH 1/2] Fix typo in OperationResponseFactory Javadoc See gh-765 --- .../restdocs/operation/OperationResponseFactory.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/OperationResponseFactory.java b/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/OperationResponseFactory.java index dd658ce1..a86c6209 100644 --- a/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/OperationResponseFactory.java +++ b/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/OperationResponseFactory.java @@ -31,8 +31,8 @@ public class OperationResponseFactory { * {@code headers} will be augmented to ensure that they include a * {@code Content-Length} header. * @param status the status of the response - * @param headers the request's headers - * @param content the content of the request + * @param headers the response's headers + * @param content the content of the response * @return the {@code OperationResponse} * @deprecated since 2.0.4 in favor of {@link #create(int, HttpHeaders, byte[])} */ @@ -46,8 +46,8 @@ public class OperationResponseFactory { * {@code headers} will be augmented to ensure that they include a * {@code Content-Length} header. * @param status the status of the response - * @param headers the request's headers - * @param content the content of the request + * @param headers the response's headers + * @param content the content of the response * @return the {@code OperationResponse} */ public OperationResponse create(int status, HttpHeaders headers, byte[] content) { From 42e84d1db3bba1ef4ebb50c0e51c7f2ffb58e70a Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 4 Jan 2022 11:49:26 +0000 Subject: [PATCH 2/2] Polish "Fix typo in OperationResponseFactory Javadoc" See gh-765 --- .../restdocs/operation/OperationResponseFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/OperationResponseFactory.java b/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/OperationResponseFactory.java index a86c6209..3b9c9914 100644 --- a/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/OperationResponseFactory.java +++ b/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/OperationResponseFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2021 the original author or authors. + * Copyright 2014-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.