Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
e0bb9e70
Commit
e0bb9e70
authored
Sep 19, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up generics in WebFluxEndpointHandlerMapping
Closes gh-10113
parent
975c005d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
WebFluxEndpointHandlerMapping.java
.../endpoint/web/reactive/WebFluxEndpointHandlerMapping.java
+5
-6
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/reactive/WebFluxEndpointHandlerMapping.java
View file @
e0bb9e70
...
...
@@ -202,8 +202,8 @@ public class WebFluxEndpointHandlerMapping extends RequestMappingInfoHandlerMapp
this
.
operationInvoker
=
operationInvoker
;
}
@SuppressWarnings
({
"unchecked"
,
"rawtypes"
})
Publisher
<
ResponseEntity
<
?
extends
Object
>>
doHandle
(
ServerWebExchange
exchange
,
@SuppressWarnings
({
"unchecked"
})
Publisher
<
ResponseEntity
<
Object
>>
doHandle
(
ServerWebExchange
exchange
,
Map
<
String
,
String
>
body
)
{
Map
<
String
,
Object
>
arguments
=
new
HashMap
<>((
Map
<
String
,
String
>)
exchange
.
getAttribute
(
HandlerMapping
.
URI_TEMPLATE_VARIABLES_ATTRIBUTE
));
...
...
@@ -212,8 +212,7 @@ public class WebFluxEndpointHandlerMapping extends RequestMappingInfoHandlerMapp
}
exchange
.
getRequest
().
getQueryParams
().
forEach
((
name
,
values
)
->
arguments
.
put
(
name
,
values
.
size
()
==
1
?
values
.
get
(
0
)
:
values
));
return
(
Publisher
)
handleResult
(
(
Publisher
<?>)
this
.
operationInvoker
.
invoke
(
arguments
),
return
handleResult
((
Publisher
<?>)
this
.
operationInvoker
.
invoke
(
arguments
),
exchange
.
getRequest
().
getMethod
());
}
...
...
@@ -247,7 +246,7 @@ public class WebFluxEndpointHandlerMapping extends RequestMappingInfoHandlerMapp
}
@ResponseBody
public
Publisher
<
ResponseEntity
<
?
>>
handle
(
ServerWebExchange
exchange
,
public
Publisher
<
ResponseEntity
<
Object
>>
handle
(
ServerWebExchange
exchange
,
@RequestBody
(
required
=
false
)
Map
<
String
,
String
>
body
)
{
return
doHandle
(
exchange
,
body
);
}
...
...
@@ -264,7 +263,7 @@ public class WebFluxEndpointHandlerMapping extends RequestMappingInfoHandlerMapp
}
@ResponseBody
public
Publisher
<
ResponseEntity
<
?
>>
handle
(
ServerWebExchange
exchange
)
{
public
Publisher
<
ResponseEntity
<
Object
>>
handle
(
ServerWebExchange
exchange
)
{
return
doHandle
(
exchange
,
null
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment