paperbits / paperbits-common

This repository contains common interfaces, services and utilities used by other Paperbits libraries
http://paperbits.io
MIT License
20 stars 17 forks source link

Deep copy query #9

Closed malincrist closed 3 years ago

malincrist commented 3 years ago

The class Query<T> contains a method copy() that seems to want to create a deep clone of the query instance, but it doesn't deep clone the filters from within.

That will cause that when copying a query and then changing the filters of the original one, the filters from the copied one will also be changed, resulting in potential unwanted behaviors.