Polish
This commit is contained in:
@@ -478,15 +478,15 @@ class BeanDefinitionPropertiesCodeGeneratorTests {
|
||||
|
||||
static class PropertyValuesFactoryBean implements FactoryBean<String> {
|
||||
|
||||
private Class<?> prefix;
|
||||
private String prefix;
|
||||
|
||||
private String name;
|
||||
|
||||
public Class<?> getPrefix() {
|
||||
public String getPrefix() {
|
||||
return this.prefix;
|
||||
}
|
||||
|
||||
public void setPrefix(Class<?> prefix) {
|
||||
public void setPrefix(String prefix) {
|
||||
this.prefix = prefix;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.junit.jupiter.api.condition.EnabledIf;
|
||||
import org.springframework.aot.agent.RuntimeHintsAgent;
|
||||
|
||||
/**
|
||||
* {@code @EneabledIfRuntimeHintsAgent} signals that the annotated test class or test method
|
||||
* {@code @EnabledIfRuntimeHintsAgent} signals that the annotated test class or test method
|
||||
* is only enabled if the {@link RuntimeHintsAgent} is loaded on the current JVM.
|
||||
* <p>This is meta-annotated with {@code @Tag("RuntimeHintsTests")} so that test suites
|
||||
* can choose to target or ignore those tests.
|
||||
|
||||
@@ -65,7 +65,7 @@ public class FilePatternResourceHintsRegistrar {
|
||||
}
|
||||
|
||||
private static List<String> validateLocations(List<String> locations) {
|
||||
Assert.notEmpty(locations, () -> "At least one location should be specified");
|
||||
Assert.notEmpty(locations, "At least one location should be specified");
|
||||
List<String> parsedLocations = new ArrayList<>();
|
||||
for (String location : locations) {
|
||||
if (location.startsWith(ResourceUtils.CLASSPATH_URL_PREFIX)) {
|
||||
|
||||
@@ -107,7 +107,7 @@ class SpringFactoriesLoaderRuntimeHints implements RuntimeHintsRegistrar {
|
||||
|
||||
private static class ExtendedSpringFactoriesLoader extends SpringFactoriesLoader {
|
||||
|
||||
public ExtendedSpringFactoriesLoader(@Nullable ClassLoader classLoader, Map<String, List<String>> factories) {
|
||||
ExtendedSpringFactoriesLoader(@Nullable ClassLoader classLoader, Map<String, List<String>> factories) {
|
||||
super(classLoader, factories);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public class WebClientRequestException extends WebClientException {
|
||||
|
||||
/**
|
||||
* Not all {@code HttpHeaders} implementations are serializable, so we
|
||||
* make a copy to ensure that {@code WebClientResponseException} is.
|
||||
* make a copy to ensure that {@code WebClientRequestException} is.
|
||||
*/
|
||||
private static HttpHeaders copy(HttpHeaders headers) {
|
||||
HttpHeaders result = new HttpHeaders();
|
||||
|
||||
Reference in New Issue
Block a user