Skip to content

Commit ffc723f

Browse files
committed
Move NullableWrapper to core package.
1 parent af1a3e4 commit ffc723f

File tree

11 files changed

+17
-18
lines changed

11 files changed

+17
-18
lines changed

src/main/java/org/springframework/data/util/NullableWrapper.java renamed to src/main/java/org/springframework/data/core/NullableWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2025 the original author or authors.
2+
* Copyright 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.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.util;
16+
package org.springframework.data.core;
1717

1818
import org.jspecify.annotations.Nullable;
1919

src/main/java/org/springframework/data/util/NullableWrapperConverters.java renamed to src/main/java/org/springframework/data/core/NullableWrapperConverters.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2025 the original author or authors.
2+
* Copyright 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.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.util;
16+
package org.springframework.data.core;
1717

1818
import scala.Function0;
1919
import scala.Option;
@@ -31,7 +31,8 @@
3131
import org.springframework.core.convert.converter.Converter;
3232
import org.springframework.core.convert.converter.ConverterRegistry;
3333
import org.springframework.core.convert.converter.GenericConverter;
34-
import org.springframework.data.core.TypeInformation;
34+
import org.springframework.data.util.StreamUtils;
35+
import org.springframework.data.util.Streamable;
3536
import org.springframework.lang.Contract;
3637
import org.springframework.util.Assert;
3738
import org.springframework.util.ClassUtils;

src/main/java/org/springframework/data/core/TypeDiscoverer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import org.springframework.core.convert.TypeDescriptor;
3737
import org.springframework.data.util.CustomCollections;
3838
import org.springframework.data.util.Lazy;
39-
import org.springframework.data.util.NullableWrapperConverters;
4039
import org.springframework.data.util.Streamable;
4140
import org.springframework.util.Assert;
4241
import org.springframework.util.ConcurrentLruCache;

src/main/java/org/springframework/data/mapping/context/AbstractMappingContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
import org.springframework.core.KotlinDetector;
5151
import org.springframework.core.NativeDetector;
5252
import org.springframework.core.env.Environment;
53+
import org.springframework.data.core.NullableWrapperConverters;
5354
import org.springframework.data.core.PropertyPath;
5455
import org.springframework.data.core.TypeInformation;
5556
import org.springframework.data.domain.ManagedTypes;
@@ -69,7 +70,6 @@
6970
import org.springframework.data.spel.ExtensionAwareEvaluationContextProvider;
7071
import org.springframework.data.util.CustomCollections;
7172
import org.springframework.data.util.KotlinReflectionUtils;
72-
import org.springframework.data.util.NullableWrapperConverters;
7373
import org.springframework.data.util.Optionals;
7474
import org.springframework.data.util.Streamable;
7575
import org.springframework.util.Assert;

src/main/java/org/springframework/data/projection/ProjectingMethodInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131

3232
import org.springframework.core.CollectionFactory;
3333
import org.springframework.core.convert.ConversionService;
34+
import org.springframework.data.core.NullableWrapper;
35+
import org.springframework.data.core.NullableWrapperConverters;
3436
import org.springframework.data.core.TypeInformation;
35-
import org.springframework.data.util.NullableWrapper;
36-
import org.springframework.data.util.NullableWrapperConverters;
3737
import org.springframework.lang.Contract;
3838
import org.springframework.util.Assert;
3939
import org.springframework.util.ClassUtils;

src/main/java/org/springframework/data/projection/ProxyProjectionFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
import org.aopalliance.intercept.MethodInterceptor;
2626
import org.aopalliance.intercept.MethodInvocation;
27-
2827
import org.jspecify.annotations.Nullable;
2928

3029
import org.springframework.aop.framework.Advised;
@@ -33,8 +32,8 @@
3332
import org.springframework.core.convert.support.DefaultConversionService;
3433
import org.springframework.core.convert.support.GenericConversionService;
3534
import org.springframework.data.convert.Jsr310Converters;
35+
import org.springframework.data.core.NullableWrapperConverters;
3636
import org.springframework.data.util.Lazy;
37-
import org.springframework.data.util.NullableWrapperConverters;
3837
import org.springframework.data.util.NullnessMethodInvocationValidator;
3938
import org.springframework.util.Assert;
4039
import org.springframework.util.ClassUtils;

src/main/java/org/springframework/data/repository/core/support/QueryExecutionResultHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
import org.springframework.core.convert.ConversionService;
3131
import org.springframework.core.convert.TypeDescriptor;
3232
import org.springframework.core.convert.support.GenericConversionService;
33+
import org.springframework.data.core.NullableWrapper;
3334
import org.springframework.data.repository.util.QueryExecutionConverters;
3435
import org.springframework.data.repository.util.ReactiveWrapperConverters;
35-
import org.springframework.data.util.NullableWrapper;
3636
import org.springframework.data.util.ReactiveWrappers;
3737
import org.springframework.data.util.Streamable;
3838

src/main/java/org/springframework/data/repository/query/QueryMethod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import org.jspecify.annotations.Nullable;
2626

27+
import org.springframework.data.core.NullableWrapperConverters;
2728
import org.springframework.data.core.TypeInformation;
2829
import org.springframework.data.domain.Limit;
2930
import org.springframework.data.domain.Page;
@@ -40,7 +41,6 @@
4041
import org.springframework.data.repository.util.QueryExecutionConverters;
4142
import org.springframework.data.repository.util.ReactiveWrapperConverters;
4243
import org.springframework.data.util.Lazy;
43-
import org.springframework.data.util.NullableWrapperConverters;
4444
import org.springframework.data.util.ReactiveWrappers;
4545
import org.springframework.data.util.ReflectionUtils;
4646
import org.springframework.util.Assert;

src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
import org.springframework.core.convert.converter.GenericConverter;
3838
import org.springframework.core.convert.support.ConfigurableConversionService;
3939
import org.springframework.core.convert.support.DefaultConversionService;
40+
import org.springframework.data.core.NullableWrapper;
41+
import org.springframework.data.core.NullableWrapperConverters;
4042
import org.springframework.data.core.TypeInformation;
4143
import org.springframework.data.domain.Page;
4244
import org.springframework.data.domain.SearchResult;
@@ -45,8 +47,6 @@
4547
import org.springframework.data.domain.Window;
4648
import org.springframework.data.geo.GeoResults;
4749
import org.springframework.data.util.CustomCollections;
48-
import org.springframework.data.util.NullableWrapper;
49-
import org.springframework.data.util.NullableWrapperConverters;
5050
import org.springframework.data.util.StreamUtils;
5151
import org.springframework.data.util.Streamable;
5252
import org.springframework.lang.Contract;

src/test/java/org/springframework/data/util/NullableWrapperConvertersUnitTests.java renamed to src/test/java/org/springframework/data/core/NullableWrapperConvertersUnitTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2025 the original author or authors.
2+
* Copyright 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.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.util;
16+
package org.springframework.data.core;
1717

1818
import static org.assertj.core.api.Assertions.*;
1919

0 commit comments

Comments
 (0)