Skip to content

Commit

Permalink
Update StreamReadConstraints.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jun 10, 2024
1 parent 5809486 commit 08d5d31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ public void validateDocumentLength(long len) throws StreamConstraintsException
*/
public void validateTokenCount(long count) throws StreamConstraintsException
{
// for performance, it is assumed that users check hasMaxTokenCount()
// for performance reasons, it is assumed that users check hasMaxTokenCount()
// before calling this method - this method will not work properly if hasMaxTokenCount() is false
if (count > _maxTokenCount) {
throw _constructException(
Expand Down

0 comments on commit 08d5d31

Please sign in to comment.