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
8d06b0f3
Commit
8d06b0f3
authored
Aug 06, 2020
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x'
parents
dac63fc3
49245730
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
+6
-11
DistributeProperties.java
...oncourse/releasescripts/command/DistributeProperties.java
+1
-1
DefinitionsParser.java
...ngframework/boot/test/mock/mockito/DefinitionsParser.java
+2
-6
ModifiedClassPathClassLoader.java
...t/testsupport/classpath/ModifiedClassPathClassLoader.java
+3
-4
No files found.
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/DistributeProperties.java
View file @
8d06b0f3
/*
* Copyright 2020 the original author or authors.
* Copyright 2020
-2020
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.
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/DefinitionsParser.java
View file @
8d06b0f3
...
...
@@ -116,12 +116,8 @@ class DefinitionsParser {
}
if
(
types
.
isEmpty
()
&&
element
instanceof
Field
)
{
Field
field
=
(
Field
)
element
;
if
(
field
.
getGenericType
()
instanceof
TypeVariable
)
{
types
.
add
(
ResolvableType
.
forField
(
field
,
source
));
}
else
{
types
.
add
(
ResolvableType
.
forField
(
field
));
}
types
.
add
((
field
.
getGenericType
()
instanceof
TypeVariable
)
?
ResolvableType
.
forField
(
field
,
source
)
:
ResolvableType
.
forField
(
field
));
}
return
types
;
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/ModifiedClassPathClassLoader.java
View file @
8d06b0f3
...
...
@@ -199,12 +199,11 @@ final class ModifiedClassPathClassLoader extends URLClassLoader {
RepositorySystem
repositorySystem
=
serviceLocator
.
getService
(
RepositorySystem
.
class
);
DefaultRepositorySystemSession
session
=
MavenRepositorySystemUtils
.
newSession
();
LocalRepository
localRepository
=
new
LocalRepository
(
System
.
getProperty
(
"user.home"
)
+
"/.m2/repository"
);
RemoteRepository
remoteRepository
=
new
RemoteRepository
.
Builder
(
"central"
,
"default"
,
"https://repo.maven.apache.org/maven2"
).
build
();
session
.
setLocalRepositoryManager
(
repositorySystem
.
newLocalRepositoryManager
(
session
,
localRepository
));
for
(
int
i
=
0
;
i
<
MAX_RESOLUTION_ATTEMPTS
;
i
++)
{
CollectRequest
collectRequest
=
new
CollectRequest
(
null
,
Arrays
.
asList
(
new
RemoteRepository
.
Builder
(
"central"
,
"default"
,
"https://repo.maven.apache.org/maven2"
)
.
build
()));
CollectRequest
collectRequest
=
new
CollectRequest
(
null
,
Arrays
.
asList
(
remoteRepository
));
collectRequest
.
setDependencies
(
createDependencies
(
coordinates
));
DependencyRequest
dependencyRequest
=
new
DependencyRequest
(
collectRequest
,
null
);
try
{
...
...
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