Polishing

This commit is contained in:
Juergen Hoeller 2025-03-04 18:44:56 +01:00
parent 534f123fe8
commit 403362fe3c
4 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2024 the original author or authors. * Copyright 2002-2025 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -443,6 +443,7 @@ public class InstanceSupplierCodeGenerator {
} }
} }
record ConstructorDescriptor(String beanName, Constructor<?> constructor, Class<?> publicType) { record ConstructorDescriptor(String beanName, Constructor<?> constructor, Class<?> publicType) {
Class<?> actualType() { Class<?> actualType() {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2024 the original author or authors. * Copyright 2002-2025 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -787,9 +787,9 @@ public abstract class StringUtils {
pathElements.addFirst(CURRENT_PATH); pathElements.addFirst(CURRENT_PATH);
} }
final String joined = collectionToDelimitedString(pathElements, FOLDER_SEPARATOR); String joined = collectionToDelimitedString(pathElements, FOLDER_SEPARATOR);
// avoid string concatenation with empty prefix // Avoid String concatenation with empty prefix
return prefix.isEmpty() ? joined : prefix + joined; return (prefix.isEmpty() ? joined : prefix + joined);
} }
/** /**

View File

@ -461,7 +461,7 @@ class GenericTypeResolverTests {
} }
} }
public interface InterfaceWithDefaultMethod<T extends InheritsDefaultMethod.AbstractType> { public interface InterfaceWithDefaultMethod<T extends InterfaceWithDefaultMethod.AbstractType> {
default String get(T input) { default String get(T input) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2024 the original author or authors. * Copyright 2002-2025 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -56,6 +56,7 @@ class ResourceHandlerFunctionTests {
private ResourceHttpMessageConverter messageConverter; private ResourceHttpMessageConverter messageConverter;
@BeforeEach @BeforeEach
void createContext() { void createContext() {
this.messageConverter = new ResourceHttpMessageConverter(); this.messageConverter = new ResourceHttpMessageConverter();