Skip to content

Commit 3f7a3f2

Browse files
dtillerwing328
andauthored
[TYPO] [WEBCLIENT] Issue 7425: Fixed comments that referred to RestTemplate. (#7445)
* Issue 7425: Fixed comments that referred to RestTemplate. * Ran genreate-samples.sh * Re-ran generate-samples.sh against all configs. * update samples Co-authored-by: William Cheng <[email protected]>
1 parent 29ed234 commit 3f7a3f2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

modules/openapi-generator/src/main/resources/Java/libraries/webclient/ApiClient.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ public class ApiClient{{#java8}} extends JavaTimeFormatter{{/java8}} {
144144
}
145145

146146
/**
147-
* Build the RestTemplate used to make HTTP requests.
148-
* @return RestTemplate
147+
* Build the WebClient used to make HTTP requests.
148+
* @return WebClient
149149
*/
150150
public static WebClient buildWebClient(ObjectMapper mapper) {
151151
ExchangeStrategies strategies = ExchangeStrategies

modules/openapi-generator/src/main/resources/Java/libraries/webclient/pom.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<version>${reactor-version}</version>
8787
</dependency>
8888

89-
<!-- HTTP client: Spring RestTemplate -->
89+
<!-- HTTP client: Spring WebFlux -->
9090
<dependency>
9191
<groupId>org.springframework</groupId>
9292
<artifactId>spring-webflux</artifactId>

samples/client/petstore/java/webclient/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<version>${reactor-version}</version>
8080
</dependency>
8181

82-
<!-- HTTP client: Spring RestTemplate -->
82+
<!-- HTTP client: Spring WebFlux -->
8383
<dependency>
8484
<groupId>org.springframework</groupId>
8585
<artifactId>spring-webflux</artifactId>

samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ protected void init() {
136136
}
137137

138138
/**
139-
* Build the RestTemplate used to make HTTP requests.
140-
* @return RestTemplate
139+
* Build the WebClient used to make HTTP requests.
140+
* @return WebClient
141141
*/
142142
public static WebClient buildWebClient(ObjectMapper mapper) {
143143
ExchangeStrategies strategies = ExchangeStrategies

0 commit comments

Comments
 (0)