|
12 | 12 |
|
13 | 13 | import org.checkerframework.checker.nullness.qual.Nullable; |
14 | 14 |
|
15 | | -import static org.hibernate.internal.util.NullnessUtil.castNonNull; |
16 | | - |
17 | 15 | /** |
18 | 16 | * A compound name where the root path element is an entity name or a collection role |
19 | 17 | * 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 |
76 | 74 | } |
77 | 75 | } |
78 | 76 |
|
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 | | - |
93 | 77 | public NavigablePath( |
94 | 78 | @Nullable NavigablePath parent, |
95 | 79 | String localName, |
@@ -145,8 +129,7 @@ public boolean equals(@Nullable Object other) { |
145 | 129 | return false; |
146 | 130 | } |
147 | 131 |
|
148 | | - if ( otherPath instanceof NavigablePath ) { |
149 | | - final NavigablePath otherNavigablePath = (NavigablePath) otherPath; |
| 132 | + if ( otherPath instanceof NavigablePath otherNavigablePath ) { |
150 | 133 | if ( ! Objects.equals( getAlias(), otherNavigablePath.getAlias() ) ) { |
151 | 134 | return false; |
152 | 135 | } |
@@ -329,50 +312,4 @@ public String getFullPath() { |
329 | 312 | public String toString() { |
330 | 313 | return getFullPath(); |
331 | 314 | } |
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 | | - } |
378 | 315 | } |
0 commit comments