Skip to content

Commit cf553df

Browse files
committed
Introduce Core package.
1 parent 8985b42 commit cf553df

30 files changed

+55
-38
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011-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,13 +13,15 @@
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 java.util.Iterator;
1919
import java.util.regex.Pattern;
2020

2121
import org.jspecify.annotations.Nullable;
2222

23+
import org.springframework.data.util.Streamable;
24+
import org.springframework.data.util.TypeInformation;
2325
import org.springframework.util.Assert;
2426

2527
/**

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-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 java.io.Serial;
1919
import java.util.Arrays;
@@ -25,6 +25,8 @@
2525
import org.jspecify.annotations.Nullable;
2626

2727
import org.springframework.beans.PropertyMatches;
28+
import org.springframework.data.util.Lazy;
29+
import org.springframework.data.util.TypeInformation;
2830
import org.springframework.util.Assert;
2931
import org.springframework.util.StringUtils;
3032

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011-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 java.beans.Introspector;
1919
import java.util.ArrayList;
@@ -28,6 +28,7 @@
2828

2929
import org.jspecify.annotations.Nullable;
3030

31+
import org.springframework.data.util.TypeInformation;
3132
import org.springframework.util.Assert;
3233
import org.springframework.util.ConcurrentReferenceHashMap;
3334
import org.springframework.util.StringUtils;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
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 java.io.Serializable;
1919
import java.util.Collections;
2020
import java.util.Iterator;
2121

2222
import org.jspecify.annotations.Nullable;
2323

24+
import org.springframework.data.util.TypeInformation;
25+
2426
/**
2527
* Type-safe representation of a property path expressed through method references.
2628
* <p>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 java.beans.Introspector;
1919
import java.beans.PropertyDescriptor;
@@ -46,6 +46,7 @@
4646
import org.springframework.beans.BeanUtils;
4747
import org.springframework.core.ResolvableType;
4848
import org.springframework.dao.InvalidDataAccessApiUsageException;
49+
import org.springframework.data.util.TypeInformation;
4950
import org.springframework.util.ClassUtils;
5051
import org.springframework.util.ConcurrentReferenceHashMap;
5152
import org.springframework.util.ObjectUtils;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Provides basic classes for type handling and other core helpers that are not specific to any part of the framework.
3+
*/
4+
@org.jspecify.annotations.NullMarked
5+
package org.springframework.data.core;

src/main/java/org/springframework/data/domain/ExampleMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
import org.jspecify.annotations.Nullable;
2727

28-
import org.springframework.data.util.TypedPropertyPath;
28+
import org.springframework.data.core.TypedPropertyPath;
2929
import org.springframework.lang.CheckReturnValue;
3030
import org.springframework.lang.Contract;
3131
import org.springframework.util.Assert;

src/main/java/org/springframework/data/domain/Sort.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929

3030
import org.jspecify.annotations.Nullable;
3131

32+
import org.springframework.data.core.PropertyPath;
33+
import org.springframework.data.core.TypedPropertyPath;
3234
import org.springframework.data.util.MethodInvocationRecorder;
3335
import org.springframework.data.util.MethodInvocationRecorder.Recorded;
34-
import org.springframework.data.util.PropertyPath;
3536
import org.springframework.data.util.Streamable;
36-
import org.springframework.data.util.TypedPropertyPath;
3737
import org.springframework.lang.CheckReturnValue;
3838
import org.springframework.lang.Contract;
3939
import org.springframework.util.Assert;
@@ -797,7 +797,7 @@ public String toString() {
797797
* @author Oliver Gierke
798798
* @since 2.2
799799
* @soundtrack The Intersphere - Linger (The Grand Delusion)
800-
* @deprecated since 4.1 in favor of {@link Sort#by(org.springframework.data.util.TypedPropertyPath...)}
800+
* @deprecated since 4.1 in favor of {@link Sort#by(TypedPropertyPath...)}
801801
*/
802802
@Deprecated(since = "4.1")
803803
public static class TypedSort<T> extends Sort {

src/main/java/org/springframework/data/mapping/PersistentPropertyPaths.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.Optional;
1919
import java.util.function.Predicate;
2020

21-
import org.springframework.data.util.PropertyPath;
21+
import org.springframework.data.core.PropertyPath;
2222
import org.springframework.data.util.Streamable;
2323

2424
/**

src/main/java/org/springframework/data/mapping/PropertyPath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
* @deprecated since 4.1, use its replacement that moved to {@code org.springframework.data.util} package.
2727
*/
2828
@Deprecated
29-
public interface PropertyPath extends org.springframework.data.util.PropertyPath {
29+
public interface PropertyPath extends org.springframework.data.core.PropertyPath {
3030

3131
}

0 commit comments

Comments
 (0)