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
5c04e7dd
Commit
5c04e7dd
authored
Mar 26, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12584 from izeye:polish-20180322
* pr/12584: Polish contribution Polish
parents
64a4f705
47307dbc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
9 deletions
+3
-9
TomcatMetricsAutoConfiguration.java
...re/metrics/web/tomcat/TomcatMetricsAutoConfiguration.java
+1
-2
HazelcastCacheMeterBinderProviderTests.java
...metrics/cache/HazelcastCacheMeterBinderProviderTests.java
+0
-3
DefaultErrorWebExceptionHandlerIntegrationTests.java
...rror/DefaultErrorWebExceptionHandlerIntegrationTests.java
+1
-1
ReproTests.java
...ot/src/test/java/org/springframework/boot/ReproTests.java
+1
-2
ConfigFileApplicationListenerYamlProfileNegationTests.java
...onfigFileApplicationListenerYamlProfileNegationTests.java
+0
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/web/tomcat/TomcatMetricsAutoConfiguration.java
View file @
5c04e7dd
...
...
@@ -30,7 +30,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplicat
import
org.springframework.boot.web.embedded.tomcat.TomcatReactiveWebServerFactory
;
import
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
;
import
org.springframework.boot.web.server.WebServerFactoryCustomizer
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.annotation.Bean
;
/**
...
...
@@ -47,7 +46,7 @@ public class TomcatMetricsAutoConfiguration {
@Bean
@ConditionalOnMissingBean
(
TomcatMetrics
.
class
)
public
TomcatMetrics
tomcatMetrics
(
ApplicationContext
applicationContext
)
{
public
TomcatMetrics
tomcatMetrics
()
{
return
new
TomcatMetrics
(
this
.
context
==
null
?
null
:
this
.
context
.
getManager
(),
Collections
.
emptyList
());
}
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/cache/HazelcastCacheMeterBinderProviderTests.java
View file @
5c04e7dd
...
...
@@ -23,8 +23,6 @@ import com.hazelcast.spring.cache.HazelcastCache;
import
io.micrometer.core.instrument.binder.MeterBinder
;
import
io.micrometer.core.instrument.binder.cache.HazelcastCacheMetrics
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.mockito.junit.MockitoJUnitRunner
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
...
...
@@ -35,7 +33,6 @@ import static org.mockito.Mockito.mock;
*
* @author Stephane Nicoll
*/
@RunWith
(
MockitoJUnitRunner
.
class
)
public
class
HazelcastCacheMeterBinderProviderTests
{
@SuppressWarnings
(
"unchecked"
)
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java
View file @
5c04e7dd
...
...
@@ -269,7 +269,7 @@ public class DefaultErrorWebExceptionHandlerIntegrationTests {
}
@Test
public
void
whi
l
elabelDisabled
()
{
public
void
whi
t
elabelDisabled
()
{
this
.
contextRunner
.
withPropertyValues
(
"server.error.whitelabel.enabled=false"
,
"spring.mustache.prefix=classpath:/unknown/"
).
run
((
context
)
->
{
WebTestClient
client
=
WebTestClient
.
bindToApplicationContext
(
context
)
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/ReproTests.java
View file @
5c04e7dd
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
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.
...
...
@@ -170,7 +170,6 @@ public class ReproTests {
.
isEqualTo
(
expectedActiveProfiles
);
assertThat
(
context
.
getEnvironment
().
getProperty
(
"version"
)).
as
(
"version mismatch"
)
.
isEqualTo
(
expectedVersion
);
context
.
close
();
}
@Configuration
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigFileApplicationListenerYamlProfileNegationTests.java
View file @
5c04e7dd
...
...
@@ -136,7 +136,6 @@ public class ConfigFileApplicationListenerYamlProfileNegationTests {
.
isEqualTo
(
expectedActiveProfiles
);
assertThat
(
context
.
getEnvironment
().
getProperty
(
"version"
)).
as
(
"version mismatch"
)
.
isEqualTo
(
expectedVersion
);
context
.
close
();
}
@Configuration
...
...
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