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
855d596c
Commit
855d596c
authored
Jun 16, 2020
by
dreis2211
Committed by
Stephane Nicoll
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use lazy lambda instead of explicit argument
See gh-21986
parent
ab51f3a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
HttpExchangeTracerTests.java
...work/boot/actuate/trace/http/HttpExchangeTracerTests.java
+2
-2
WebServiceClientExcludeFilter.java
...ure/webservices/client/WebServiceClientExcludeFilter.java
+1
-1
MustacheView.java
...framework/boot/web/reactive/result/view/MustacheView.java
+2
-2
No files found.
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/trace/http/HttpExchangeTracerTests.java
View file @
855d596c
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
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.
...
...
@@ -318,7 +318,7 @@ class HttpExchangeTracerTests {
@Override
protected
void
postProcessRequestHeaders
(
Map
<
String
,
List
<
String
>>
headers
)
{
headers
.
remove
(
"to-remove"
);
headers
.
putIfAbsent
(
"to-add"
,
Collections
.
singletonList
(
"42"
));
headers
.
computeIfAbsent
(
"to-add"
,
(
key
)
->
Collections
.
singletonList
(
"42"
));
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/webservices/client/WebServiceClientExcludeFilter.java
View file @
855d596c
...
...
@@ -36,7 +36,7 @@ public final class WebServiceClientExcludeFilter
protected
WebServiceClientExcludeFilter
(
Class
<?>
testClass
)
{
super
(
testClass
);
this
.
components
=
getAnnotation
().
getValue
(
"components"
,
Class
[].
class
).
orElse
(
new
Class
[
0
]);
this
.
components
=
getAnnotation
().
getValue
(
"components"
,
Class
[].
class
).
orElse
Get
(()
->
new
Class
<?>
[
0
]);
}
@Override
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/result/view/MustacheView.java
View file @
855d596c
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
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.
...
...
@@ -84,7 +84,7 @@ public class MustacheView extends AbstractUrlBasedView {
DataBuffer
dataBuffer
=
exchange
.
getResponse
().
bufferFactory
().
allocateBuffer
();
try
(
Reader
reader
=
getReader
(
resource
))
{
Template
template
=
this
.
compiler
.
compile
(
reader
);
Charset
charset
=
getCharset
(
contentType
).
orElse
(
getDefaultCharset
()
);
Charset
charset
=
getCharset
(
contentType
).
orElse
Get
(
this
::
getDefaultCharset
);
try
(
Writer
writer
=
new
OutputStreamWriter
(
dataBuffer
.
asOutputStream
(),
charset
))
{
template
.
execute
(
model
,
writer
);
writer
.
flush
();
...
...
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