Polishing
This commit is contained in:
parent
534f123fe8
commit
403362fe3c
|
@ -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() {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue