Skip to content

Commit df735cd

Browse files
committed
remove some deprecated methods
1 parent c66b27d commit df735cd

File tree

2 files changed

+1
-74
lines changed

2 files changed

+1
-74
lines changed

hibernate-core/src/main/java/org/hibernate/spi/NavigablePath.java

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
import org.checkerframework.checker.nullness.qual.Nullable;
1414

15-
import static org.hibernate.internal.util.NullnessUtil.castNonNull;
16-
1715
/**
1816
* A compound name where the root path element is an entity name or a collection role
1917
* and each the path sub-path from the root references a domain or mapping model part
@@ -76,20 +74,6 @@ public NavigablePath(NavigablePath parent, String localName, @Nullable String al
7674
}
7775
}
7876

79-
/**
80-
* @deprecated Since {@link FullPathCalculator} is no longer used
81-
*/
82-
@Deprecated( since = "6.6", forRemoval = true )
83-
public NavigablePath(
84-
@Nullable NavigablePath parent,
85-
String localName,
86-
@Nullable String alias,
87-
String identifierForTableGroup,
88-
FullPathCalculator fullPathCalculator,
89-
int hashCode) {
90-
this( parent, localName, alias, identifierForTableGroup, hashCode );
91-
}
92-
9377
public NavigablePath(
9478
@Nullable NavigablePath parent,
9579
String localName,
@@ -145,8 +129,7 @@ public boolean equals(@Nullable Object other) {
145129
return false;
146130
}
147131

148-
if ( otherPath instanceof NavigablePath ) {
149-
final NavigablePath otherNavigablePath = (NavigablePath) otherPath;
132+
if ( otherPath instanceof NavigablePath otherNavigablePath ) {
150133
if ( ! Objects.equals( getAlias(), otherNavigablePath.getAlias() ) ) {
151134
return false;
152135
}
@@ -329,50 +312,4 @@ public String getFullPath() {
329312
public String toString() {
330313
return getFullPath();
331314
}
332-
333-
/**
334-
* Effectively a tri-function
335-
*
336-
* @deprecated No longer used
337-
*/
338-
@FunctionalInterface
339-
@Deprecated( since = "6.6", forRemoval = true )
340-
protected interface FullPathCalculator extends Serializable {
341-
String calculateFullPath(@Nullable NavigablePath parent, String localName, @Nullable String alias);
342-
}
343-
344-
/**
345-
* The pattern used for root NavigablePaths
346-
*
347-
* @deprecated No longer used
348-
*/
349-
@Deprecated( since = "6.6", forRemoval = true )
350-
protected static String calculateRootFullPath(@Nullable NavigablePath parent, String rootName, @Nullable String alias) {
351-
assert parent == null;
352-
return alias == null ? rootName : rootName + "(" + alias + ")";
353-
}
354-
355-
/**
356-
* The normal pattern used for the "full path"
357-
*
358-
* @deprecated No longer used
359-
*/
360-
@Deprecated( since = "6.6", forRemoval = true )
361-
private static String calculateNormalFullPath(@Nullable NavigablePath parent, String localName, @Nullable String alias) {
362-
final String parentFullPath = castNonNull( parent ).getFullPath();
363-
final String baseFullPath = StringHelper.isEmpty( parentFullPath )
364-
? localName
365-
: parentFullPath + "." + localName;
366-
return alias == null ? baseFullPath : baseFullPath + "(" + alias + ")";
367-
}
368-
369-
/**
370-
* Pattern used for `_identifierMapper`
371-
*
372-
* @deprecated No longer used
373-
*/
374-
@Deprecated( since = "6.6", forRemoval = true )
375-
protected static String calculateIdMapperFullPath(@Nullable NavigablePath parent, String localName, @Nullable String alias) {
376-
return parent != null ? parent.getFullPath() : "";
377-
}
378315
}

hibernate-core/src/main/java/org/hibernate/spi/TreatedNavigablePath.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ public TreatedNavigablePath(NavigablePath parent, String entityTypeName, @Nullab
3333
assert !( parent instanceof TreatedNavigablePath );
3434
}
3535

36-
/**
37-
* @deprecated No longer used
38-
*/
39-
@Deprecated( since = "6.6", forRemoval = true )
40-
protected static String calculateTreatedFullPath(@Nullable NavigablePath parent, String localName, @Nullable String alias) {
41-
return alias == null
42-
? "treat(" + parent + " as " + localName + ")"
43-
: "treat(" + parent + " as " + localName + ")(" + alias + ")";
44-
}
45-
4636
@Override
4737
public NavigablePath treatAs(String entityName) {
4838
return new TreatedNavigablePath( castNonNull( getRealParent() ), entityName );

0 commit comments

Comments
 (0)