Skip to content

Commit 403362f

Browse files
committed
Polishing
1 parent 534f123 commit 403362f

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -443,6 +443,7 @@ private void registerProxyIfNecessary(RuntimeHints runtimeHints, DependencyDescr
443443
}
444444
}
445445

446+
446447
record ConstructorDescriptor(String beanName, Constructor<?> constructor, Class<?> publicType) {
447448

448449
Class<?> actualType() {

spring-core/src/main/java/org/springframework/util/StringUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -787,9 +787,9 @@ else if (TOP_PATH.equals(element)) {
787787
pathElements.addFirst(CURRENT_PATH);
788788
}
789789

790-
final String joined = collectionToDelimitedString(pathElements, FOLDER_SEPARATOR);
791-
// avoid string concatenation with empty prefix
792-
return prefix.isEmpty() ? joined : prefix + joined;
790+
String joined = collectionToDelimitedString(pathElements, FOLDER_SEPARATOR);
791+
// Avoid String concatenation with empty prefix
792+
return (prefix.isEmpty() ? joined : prefix + joined);
793793
}
794794

795795
/**

spring-core/src/test/java/org/springframework/core/GenericTypeResolverTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ List<T> get() {
461461
}
462462
}
463463

464-
public interface InterfaceWithDefaultMethod<T extends InheritsDefaultMethod.AbstractType> {
464+
public interface InterfaceWithDefaultMethod<T extends InterfaceWithDefaultMethod.AbstractType> {
465465

466466
default String get(T input) {
467467
throw new UnsupportedOperationException();

spring-webmvc/src/test/java/org/springframework/web/servlet/function/ResourceHandlerFunctionTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -56,6 +56,7 @@ class ResourceHandlerFunctionTests {
5656

5757
private ResourceHttpMessageConverter messageConverter;
5858

59+
5960
@BeforeEach
6061
void createContext() {
6162
this.messageConverter = new ResourceHttpMessageConverter();

0 commit comments

Comments
 (0)