HHH-17671 - Fix issue

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2024-01-31 00:19:49 +01:00 committed by Christian Beikov
parent 5b8f326839
commit 7da31dfd6d
1 changed files with 0 additions and 6 deletions

View File

@ -63,12 +63,6 @@ public abstract class AbstractSqmPath<T> extends AbstractSqmExpression<T> implem
protected void copyTo(AbstractSqmPath<T> target, SqmCopyContext context) { protected void copyTo(AbstractSqmPath<T> target, SqmCopyContext context) {
assert navigablePathsMatch( target ); assert navigablePathsMatch( target );
super.copyTo( target, context ); super.copyTo( target, context );
if ( reusablePaths != null ) {
target.reusablePaths = new HashMap<>( reusablePaths.size() );
for ( Map.Entry<String, SqmPath<?>> entry : reusablePaths.entrySet() ) {
target.reusablePaths.put( entry.getKey(), entry.getValue().copy( context ) );
}
}
} }
// meant for assertions only // meant for assertions only