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
590bd5c0
Commit
590bd5c0
authored
Apr 28, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup warnings
parent
08ef5f4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
MetricCopyExporterTests.java
.../boot/actuate/metrics/export/MetricCopyExporterTests.java
+12
-7
AbstractViewResolverProperties.java
...utoconfigure/template/AbstractViewResolverProperties.java
+1
-1
ThymeleafAutoConfiguration.java
...t/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
+1
-1
No files found.
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/export/MetricCopyExporterTests.java
View file @
590bd5c0
...
...
@@ -60,15 +60,20 @@ public class MetricCopyExporterTests {
}
@Test
public
void
counterWithGaugeWriter
()
{
public
void
counterWithGaugeWriter
()
throws
Exception
{
SimpleGaugeWriter
writer
=
new
SimpleGaugeWriter
();
MetricCopyExporter
exporter
=
new
MetricCopyExporter
(
this
.
reader
,
writer
);
this
.
reader
.
increment
(
new
Delta
<
Number
>(
"counter.foo"
,
2
));
exporter
.
export
();
this
.
reader
.
increment
(
new
Delta
<
Number
>(
"counter.foo"
,
3
));
exporter
.
export
();
exporter
.
flush
();
assertThat
(
writer
.
getValue
().
getValue
()).
isEqualTo
(
5L
);
try
{
this
.
reader
.
increment
(
new
Delta
<
Number
>(
"counter.foo"
,
2
));
exporter
.
export
();
this
.
reader
.
increment
(
new
Delta
<
Number
>(
"counter.foo"
,
3
));
exporter
.
export
();
exporter
.
flush
();
assertThat
(
writer
.
getValue
().
getValue
()).
isEqualTo
(
5L
);
}
finally
{
exporter
.
close
();
}
}
@Test
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/AbstractViewResolverProperties.java
View file @
590bd5c0
...
...
@@ -101,7 +101,7 @@ public abstract class AbstractViewResolverProperties {
}
public
MimeType
getContentType
()
{
if
(
this
.
contentType
.
getChar
S
et
()
==
null
)
{
if
(
this
.
contentType
.
getChar
s
et
()
==
null
)
{
Map
<
String
,
String
>
parameters
=
new
LinkedHashMap
<
String
,
String
>();
parameters
.
put
(
"charset"
,
this
.
charset
.
name
());
parameters
.
putAll
(
this
.
contentType
.
getParameters
());
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
View file @
590bd5c0
...
...
@@ -253,7 +253,7 @@ public class ThymeleafAutoConfiguration {
}
private
String
appendCharset
(
MimeType
type
,
String
charset
)
{
if
(
type
.
getChar
S
et
()
!=
null
)
{
if
(
type
.
getChar
s
et
()
!=
null
)
{
return
type
.
toString
();
}
LinkedHashMap
<
String
,
String
>
parameters
=
new
LinkedHashMap
<
String
,
String
>();
...
...
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