This commit is contained in:
Johnny Lim
2022-08-31 23:59:51 +09:00
parent 2ecc37fbef
commit 706c1ec8dd
5 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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.

View File

@@ -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)) {

View File

@@ -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);
}

View File

@@ -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();