HHH-15347 Use equals instead of identity check in NavigablePath#relativize

This commit is contained in:
Christian Beikov 2022-06-17 12:28:36 +02:00
parent d06eee0a5d
commit 2700b0a8cf
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ public class NavigablePath implements DotIdentifierSequence, Serializable {
}
protected void relativize(NavigablePath base, RelativePathCollector collector) {
if ( this == base ) {
if ( this.equals( base ) ) {
collector.matchedBase = true;
return;
}