Skip to content

Commit 8243c7b

Browse files
committed
Polish "Harmonize web handler code sample"
See gh-41948
1 parent bfce078 commit 8243c7b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/web/servlet/springmvc/MyUserHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/web/reactive/webflux/MyUserHandler.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,15 +26,15 @@ import reactor.core.publisher.Mono
2626
class MyUserHandler {
2727

2828
fun getUser(request: ServerRequest?): Mono<ServerResponse> {
29-
return ServerResponse.ok().build()
29+
/**/ return ServerResponse.ok().build()
3030
}
3131

3232
fun getUserCustomers(request: ServerRequest?): Mono<ServerResponse> {
33-
return ServerResponse.ok().build()
33+
/**/ return ServerResponse.ok().build()
3434
}
3535

3636
fun deleteUser(request: ServerRequest?): Mono<ServerResponse> {
37-
return ServerResponse.ok().build()
37+
/**/ return ServerResponse.ok().build()
3838
}
3939

4040
}

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/web/servlet/springmvc/MyUserHandler.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,15 +25,15 @@ import org.springframework.web.servlet.function.ServerResponse
2525
class MyUserHandler {
2626

2727
fun getUser(request: ServerRequest?): ServerResponse {
28-
return ServerResponse.ok().build()
28+
/**/ return ServerResponse.ok().build()
2929
}
3030

3131
fun getUserCustomers(request: ServerRequest?): ServerResponse {
32-
return ServerResponse.ok().build()
32+
/**/ return ServerResponse.ok().build()
3333
}
3434

3535
fun deleteUser(request: ServerRequest?): ServerResponse {
36-
return ServerResponse.ok().build()
36+
/**/ return ServerResponse.ok().build()
3737
}
3838

3939
}

0 commit comments

Comments
 (0)