Relocate runtime hints to aot package

See gh-27829
This commit is contained in:
Stephane Nicoll 2022-02-03 14:41:20 +01:00
parent e077a753f8
commit 6936f7e0cb
29 changed files with 39 additions and 39 deletions

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.Objects;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.Arrays;
import java.util.LinkedList;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.lang.reflect.Executable;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.lang.reflect.Field;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.io.Serializable;
import java.util.LinkedHashSet;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.lang.reflect.Proxy;
import java.util.Arrays;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.lang.reflect.Member;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.Arrays;
import java.util.LinkedHashSet;
@ -25,7 +25,7 @@ import java.util.function.Supplier;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.springframework.core.hint.ClassProxyHint.Builder;
import org.springframework.aot.hint.ClassProxyHint.Builder;
/**
* Gather the need of using proxies at runtime.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
@ -28,7 +28,7 @@ import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.springframework.core.hint.TypeHint.Builder;
import org.springframework.aot.hint.TypeHint.Builder;
/**
* Gather the need for reflection at runtime.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import org.springframework.lang.Nullable;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.ResourceBundle;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.ArrayList;
import java.util.HashSet;
@ -24,7 +24,7 @@ import java.util.Set;
import java.util.function.Consumer;
import java.util.stream.Stream;
import org.springframework.core.hint.ResourcePatternHint.Builder;
import org.springframework.aot.hint.ResourcePatternHint.Builder;
/**
* Gather the need for resources available at runtime.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.ArrayList;
import java.util.Arrays;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
/**
* Gather hints that can be used to optimize the application runtime.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.Arrays;
import java.util.HashMap;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import org.springframework.lang.Nullable;

View File

@ -2,4 +2,4 @@
* Support for registering the need for reflection, resources, java serialization
* and proxies.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.io.Closeable;
import java.io.Serializable;
@ -24,7 +24,7 @@ import java.util.function.Function;
import org.junit.jupiter.api.Test;
import org.springframework.core.hint.JdkProxyHint.Builder;
import org.springframework.aot.hint.JdkProxyHint.Builder;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.net.URL;

View File

@ -14,14 +14,14 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.function.Consumer;
import java.util.function.Function;
import org.junit.jupiter.api.Test;
import org.springframework.core.hint.JdkProxyHint.Builder;
import org.springframework.aot.hint.JdkProxyHint.Builder;
import static org.assertj.core.api.Assertions.assertThat;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.io.Serializable;
import java.util.Arrays;
@ -26,7 +26,7 @@ import java.util.stream.Stream;
import org.junit.jupiter.api.Test;
import org.springframework.core.hint.JdkProxyHint.Builder;
import org.springframework.aot.hint.JdkProxyHint.Builder;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.function.Consumer;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.Arrays;
import java.util.Collections;
@ -23,7 +23,7 @@ import java.util.function.Consumer;
import org.junit.jupiter.api.Test;
import org.springframework.core.hint.ResourceHintsTests.Nested.Inner;
import org.springframework.aot.hint.ResourceHintsTests.Nested.Inner;
import static org.assertj.core.api.Assertions.assertThat;
@ -47,14 +47,14 @@ class ResourceHintsTests {
void registerTypeWithNestedType() {
this.resourceHints.registerType(TypeReference.of(Nested.class));
assertThat(this.resourceHints.resourcePatterns()).singleElement().satisfies(
patternOf("org/springframework/core/hint/ResourceHintsTests$Nested.class"));
patternOf("org/springframework/aot/hint/ResourceHintsTests$Nested.class"));
}
@Test
void registerTypeWithInnerNestedType() {
this.resourceHints.registerType(TypeReference.of(Inner.class));
assertThat(this.resourceHints.resourcePatterns()).singleElement().satisfies(
patternOf("org/springframework/core/hint/ResourceHintsTests$Nested$Inner.class"));
patternOf("org/springframework/aot/hint/ResourceHintsTests$Nested$Inner.class"));
}
@Test

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.function.Function;

View File

@ -14,13 +14,13 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.core.hint.TypeHint.Builder;
import org.springframework.aot.hint.TypeHint.Builder;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.hint;
package org.springframework.aot.hint;
import org.junit.jupiter.api.Test;