JarvisCraft commented on PR #12343:
URL: https://github.com/apache/lucene/pull/12343#issuecomment-1572206386

   What I mean is there already a way to create an ill-formed `Term` using the 
existing `BytesRef` API: `new Term("foo", new BytesRef(invalidCharSequence))` 
and this PR does not affect it.
   
   The only addressed thing is removing defensive copying from the paths in 
which it is not required in the same way as `Term(String, String)` already does 
with the same caller-upheld invariants as with `BytesRef(CharSequence)`


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to