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
b8dff5fe
Commit
b8dff5fe
authored
Mar 07, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
e1a7f1e0
9d06d22b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
CassandraAutoConfiguration.java
...t/autoconfigure/cassandra/CassandraAutoConfiguration.java
+0
-1
WebMvcTypeExcludeFilter.java
...st/autoconfigure/web/servlet/WebMvcTypeExcludeFilter.java
+1
-2
CloudPlatformTests.java
...va/org/springframework/boot/cloud/CloudPlatformTests.java
+3
-3
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraAutoConfiguration.java
View file @
b8dff5fe
...
@@ -49,7 +49,6 @@ public class CassandraAutoConfiguration {
...
@@ -49,7 +49,6 @@ public class CassandraAutoConfiguration {
@Bean
@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean
@SuppressWarnings
(
"deprecation"
)
public
Cluster
cassandraCluster
(
CassandraProperties
properties
,
public
Cluster
cassandraCluster
(
CassandraProperties
properties
,
ObjectProvider
<
ClusterBuilderCustomizer
>
builderCustomizers
)
{
ObjectProvider
<
ClusterBuilderCustomizer
>
builderCustomizers
)
{
PropertyMapper
map
=
PropertyMapper
.
get
();
PropertyMapper
map
=
PropertyMapper
.
get
();
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebMvcTypeExcludeFilter.java
View file @
b8dff5fe
/*
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -113,7 +113,6 @@ class WebMvcTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
...
@@ -113,7 +113,6 @@ class WebMvcTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
}
}
@Override
@Override
@SuppressWarnings
(
"deprecation"
)
protected
Set
<
Class
<?>>
getDefaultIncludes
()
{
protected
Set
<
Class
<?>>
getDefaultIncludes
()
{
if
(
ObjectUtils
.
isEmpty
(
this
.
annotation
.
controllers
()))
{
if
(
ObjectUtils
.
isEmpty
(
this
.
annotation
.
controllers
()))
{
return
DEFAULT_INCLUDES_AND_CONTROLLER
;
return
DEFAULT_INCLUDES_AND_CONTROLLER
;
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/cloud/CloudPlatformTests.java
View file @
b8dff5fe
/*
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -92,7 +92,7 @@ public class CloudPlatformTests {
...
@@ -92,7 +92,7 @@ public class CloudPlatformTests {
Map
<
String
,
Object
>
source
=
new
HashMap
<>();
Map
<
String
,
Object
>
source
=
new
HashMap
<>();
source
.
put
(
"EXAMPLE_SERVICE_HOST"
,
"---"
);
source
.
put
(
"EXAMPLE_SERVICE_HOST"
,
"---"
);
source
.
put
(
"EXAMPLE_SERVICE_PORT"
,
"8080"
);
source
.
put
(
"EXAMPLE_SERVICE_PORT"
,
"8080"
);
PropertySource
propertySource
=
new
SystemEnvironmentPropertySource
(
PropertySource
<?>
propertySource
=
new
SystemEnvironmentPropertySource
(
StandardEnvironment
.
SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME
,
source
);
StandardEnvironment
.
SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME
,
source
);
environment
.
getPropertySources
().
addFirst
(
propertySource
);
environment
.
getPropertySources
().
addFirst
(
propertySource
);
CloudPlatform
platform
=
CloudPlatform
.
getActive
(
environment
);
CloudPlatform
platform
=
CloudPlatform
.
getActive
(
environment
);
...
@@ -103,7 +103,7 @@ public class CloudPlatformTests {
...
@@ -103,7 +103,7 @@ public class CloudPlatformTests {
@Test
@Test
public
void
getActiveWhenHasServiceHostAndNoServicePortShouldNotReturnKubernetes
()
{
public
void
getActiveWhenHasServiceHostAndNoServicePortShouldNotReturnKubernetes
()
{
MockEnvironment
environment
=
new
MockEnvironment
();
MockEnvironment
environment
=
new
MockEnvironment
();
PropertySource
propertySource
=
new
SystemEnvironmentPropertySource
(
PropertySource
<?>
propertySource
=
new
SystemEnvironmentPropertySource
(
StandardEnvironment
.
SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME
,
StandardEnvironment
.
SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME
,
Collections
.
singletonMap
(
"EXAMPLE_SERVICE_HOST"
,
"---"
));
Collections
.
singletonMap
(
"EXAMPLE_SERVICE_HOST"
,
"---"
));
environment
.
getPropertySources
().
addFirst
(
propertySource
);
environment
.
getPropertySources
().
addFirst
(
propertySource
);
...
...
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