Skip to content

Commit 4924573

Browse files
committed
Merge branch '2.2.x' into 2.3.x
2 parents 11d1002 + fdd6a89 commit 4924573

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/DistributeProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 the original author or authors.
2+
* Copyright 2020-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* 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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,8 @@ private Set<ResolvableType> getOrDeduceTypes(AnnotatedElement element, Class<?>[
116116
}
117117
if (types.isEmpty() && element instanceof Field) {
118118
Field field = (Field) element;
119-
if (field.getGenericType() instanceof TypeVariable) {
120-
types.add(ResolvableType.forField(field, source));
121-
}
122-
else {
123-
types.add(ResolvableType.forField(field));
124-
}
119+
types.add((field.getGenericType() instanceof TypeVariable) ? ResolvableType.forField(field, source)
120+
: ResolvableType.forField(field));
125121
}
126122
return types;
127123
}

spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/ModifiedClassPathClassLoader.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,11 @@ private static List<URL> resolveCoordinates(String[] coordinates) {
199199
RepositorySystem repositorySystem = serviceLocator.getService(RepositorySystem.class);
200200
DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();
201201
LocalRepository localRepository = new LocalRepository(System.getProperty("user.home") + "/.m2/repository");
202+
RemoteRepository remoteRepository = new RemoteRepository.Builder("central", "default",
203+
"https://repo.maven.apache.org/maven2").build();
202204
session.setLocalRepositoryManager(repositorySystem.newLocalRepositoryManager(session, localRepository));
203205
for (int i = 0; i < MAX_RESOLUTION_ATTEMPTS; i++) {
204-
CollectRequest collectRequest = new CollectRequest(null,
205-
Arrays.asList(
206-
new RemoteRepository.Builder("central", "default", "https://repo.maven.apache.org/maven2")
207-
.build()));
206+
CollectRequest collectRequest = new CollectRequest(null, Arrays.asList(remoteRepository));
208207
collectRequest.setDependencies(createDependencies(coordinates));
209208
DependencyRequest dependencyRequest = new DependencyRequest(collectRequest, null);
210209
try {

0 commit comments

Comments
 (0)