ekuvardin opened a new pull request, #759:
URL: https://github.com/apache/commons-collections/pull/759

   1. Replace AbstractPatriciaTrie.clear with logic that do not need iterate 
over all collection
   2. Add test to cover logic
   3. Also in test add logic with String `"\0"` to cover a boundary case: a 
string containing one NUL character (`U+0000`). It is a valid Java string, 
distinct from `null` and `""`.
   
   PatriciaTrie compares keys bit by bit, and NUL has all 16 character bits 
zero. This case checks that clearing the prefix view correctly removes keys 
such as `"\0"`, `"\0a"`, and `"\0\0"`, leaves the trie empty, and allows the 
view to be reused.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to