Skip to content

Commit 706c1ec

Browse files
committed
Polish
1 parent 2ecc37f commit 706c1ec

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGeneratorTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,15 +478,15 @@ public void setSpring(String spring) {
478478

479479
static class PropertyValuesFactoryBean implements FactoryBean<String> {
480480

481-
private Class<?> prefix;
481+
private String prefix;
482482

483483
private String name;
484484

485-
public Class<?> getPrefix() {
485+
public String getPrefix() {
486486
return this.prefix;
487487
}
488488

489-
public void setPrefix(Class<?> prefix) {
489+
public void setPrefix(String prefix) {
490490
this.prefix = prefix;
491491
}
492492

spring-core-test/src/main/java/org/springframework/aot/test/agent/EnabledIfRuntimeHintsAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.aot.agent.RuntimeHintsAgent;
2929

3030
/**
31-
* {@code @EneabledIfRuntimeHintsAgent} signals that the annotated test class or test method
31+
* {@code @EnabledIfRuntimeHintsAgent} signals that the annotated test class or test method
3232
* is only enabled if the {@link RuntimeHintsAgent} is loaded on the current JVM.
3333
* <p>This is meta-annotated with {@code @Tag("RuntimeHintsTests")} so that test suites
3434
* can choose to target or ignore those tests.

spring-core/src/main/java/org/springframework/aot/hint/support/FilePatternResourceHintsRegistrar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private static List<String> validateNames(List<String> names) {
6565
}
6666

6767
private static List<String> validateLocations(List<String> locations) {
68-
Assert.notEmpty(locations, () -> "At least one location should be specified");
68+
Assert.notEmpty(locations, "At least one location should be specified");
6969
List<String> parsedLocations = new ArrayList<>();
7070
for (String location : locations) {
7171
if (location.startsWith(ResourceUtils.CLASSPATH_URL_PREFIX)) {

spring-core/src/main/java/org/springframework/aot/hint/support/SpringFactoriesLoaderRuntimeHints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private Class<?> resolveClassName(ClassLoader classLoader, String factoryClassNa
107107

108108
private static class ExtendedSpringFactoriesLoader extends SpringFactoriesLoader {
109109

110-
public ExtendedSpringFactoriesLoader(@Nullable ClassLoader classLoader, Map<String, List<String>> factories) {
110+
ExtendedSpringFactoriesLoader(@Nullable ClassLoader classLoader, Map<String, List<String>> factories) {
111111
super(classLoader, factories);
112112
}
113113

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientRequestException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public WebClientRequestException(Throwable ex, HttpMethod method, URI uri, HttpH
5454

5555
/**
5656
* Not all {@code HttpHeaders} implementations are serializable, so we
57-
* make a copy to ensure that {@code WebClientResponseException} is.
57+
* make a copy to ensure that {@code WebClientRequestException} is.
5858
*/
5959
private static HttpHeaders copy(HttpHeaders headers) {
6060
HttpHeaders result = new HttpHeaders();

0 commit comments

Comments
 (0)