Re: Weird cloning in QueryNode implementations

2017-04-10 Thread Adrien Grand
I think you are right that those field copies are not necessary. Le mar. 11 avr. 2017 à 06:06, Trejkaz a écrit : > Hi all. > > Something queer I found while looking at QueryNode implementations is > this sort of thing: > > @Override > public FieldQueryNode cloneTree() throws CloneNotSupp

Weird cloning in QueryNode implementations

2017-04-10 Thread Trejkaz
Hi all. Something queer I found while looking at QueryNode implementations is this sort of thing: @Override public FieldQueryNode cloneTree() throws CloneNotSupportedException { FieldQueryNode fqn = (FieldQueryNode) super.cloneTree(); fqn.begin = this.begin; fqn.en