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
5ed00b35
Commit
5ed00b35
authored
Nov 28, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
9fdb563d
357d072a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
17 deletions
+15
-17
pom.xml
spring-boot-actuator-docs/pom.xml
+1
-1
CouchbaseAutoConfiguration.java
...t/autoconfigure/couchbase/CouchbaseAutoConfiguration.java
+4
-4
ConditionalOnMissingBeanWithFilteredClasspathTests.java
...n/ConditionalOnMissingBeanWithFilteredClasspathTests.java
+1
-1
TestDatabaseAutoConfigurationTests.java
...configure/orm/jpa/TestDatabaseAutoConfigurationTests.java
+0
-1
Handler.java
...ain/java/org/springframework/boot/loader/jar/Handler.java
+9
-10
No files found.
spring-boot-actuator-docs/pom.xml
View file @
5ed00b35
...
...
@@ -18,11 +18,11 @@
<main.basedir>
${basedir}/..
</main.basedir>
</properties>
<dependencies>
<!-- Compile -->
<dependency>
<groupId>
org.springframework.hateoas
</groupId>
<artifactId>
spring-hateoas
</artifactId>
</dependency>
<!-- Provided -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/couchbase/CouchbaseAutoConfiguration.java
View file @
5ed00b35
...
...
@@ -49,8 +49,7 @@ import org.springframework.context.annotation.Primary;
public
class
CouchbaseAutoConfiguration
{
@Configuration
@ConditionalOnMissingBean
(
value
=
CouchbaseConfiguration
.
class
,
type
=
"org.springframework.data.couchbase.config.CouchbaseConfigurer"
)
@ConditionalOnMissingBean
(
value
=
CouchbaseConfiguration
.
class
,
type
=
"org.springframework.data.couchbase.config.CouchbaseConfigurer"
)
public
static
class
CouchbaseConfiguration
{
private
final
CouchbaseProperties
properties
;
...
...
@@ -124,8 +123,9 @@ public class CouchbaseAutoConfiguration {
* Determine if Couchbase should be configured. This happens if either the
* user-configuration defines a {@code CouchbaseConfigurer} or if at least the
* "bootstrapHosts" property is specified.
* <p>The reason why we check for the presence of {@code CouchbaseConfigurer} is
* that it might use {@link CouchbaseProperties} for its internal customization.
* <p>
* The reason why we check for the presence of {@code CouchbaseConfigurer} is that it
* might use {@link CouchbaseProperties} for its internal customization.
*/
static
class
CouchbaseCondition
extends
AnyNestedCondition
{
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingBeanWithFilteredClasspathTests.java
View file @
5ed00b35
...
...
@@ -53,7 +53,6 @@ public class ConditionalOnMissingBeanWithFilteredClasspathTests {
assertThat
(
this
.
context
.
containsBean
(
"foo"
)).
isTrue
();
}
@Configuration
static
class
OnBeanTypeConfiguration
{
...
...
@@ -66,6 +65,7 @@ public class ConditionalOnMissingBeanWithFilteredClasspathTests {
}
static
class
TestCacheManager
extends
CaffeineCacheManager
{
}
}
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/orm/jpa/TestDatabaseAutoConfigurationTests.java
View file @
5ed00b35
...
...
@@ -60,7 +60,6 @@ public class TestDatabaseAutoConfigurationTests {
DataSource
datasource
=
this
.
context
.
getBean
(
DataSource
.
class
);
JdbcTemplate
jdbcTemplate
=
new
JdbcTemplate
(
datasource
);
jdbcTemplate
.
execute
(
"create table example (id int, name varchar);"
);
ConfigurableApplicationContext
anotherContext
=
doLoad
(
ExistingDataSourceConfiguration
.
class
);
try
{
...
...
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/Handler.java
View file @
5ed00b35
...
...
@@ -198,24 +198,23 @@ public class Handler extends URLStreamHandler {
@Override
protected
int
hashCode
(
URL
u
)
{
int
result
=
0
;
String
protocol
=
u
.
getProtocol
();
if
(
protocol
!=
null
)
{
result
+=
protocol
.
hashCode
();
return
hashCode
(
u
.
getProtocol
(),
u
.
getFile
());
}
String
file
=
u
.
getFile
();
private
int
hashCode
(
String
protocol
,
String
file
)
{
int
result
=
(
protocol
==
null
?
0
:
protocol
.
hashCode
());
int
separatorIndex
=
file
.
indexOf
(
SEPARATOR
);
if
(
separatorIndex
==
-
1
)
{
return
result
+
file
.
hashCode
();
}
String
fileWithoutEntry
=
file
.
substring
(
0
,
separatorIndex
);
String
source
=
file
.
substring
(
0
,
separatorIndex
);
String
entry
=
canonicalize
(
file
.
substring
(
separatorIndex
+
2
));
try
{
result
+=
new
URL
(
fileWithoutEntry
).
hashCode
();
result
+=
new
URL
(
source
).
hashCode
();
}
catch
(
MalformedURLException
ex
)
{
result
+=
fileWithoutEntry
.
hashCode
();
result
+=
source
.
hashCode
();
}
String
entry
=
canonicalize
(
file
.
substring
(
separatorIndex
+
2
));
result
+=
entry
.
hashCode
();
return
result
;
}
...
...
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