networknt / json-schema-validator

A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12
Apache License 2.0
800 stars 320 forks source link

Set initial array list size #1062

Closed justin-tay closed 3 weeks ago

justin-tay commented 3 weeks ago

Sets the initial size of the ArrayList to the expected size when known.

codecov-commenter commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 77.77778% with 4 lines in your changes missing coverage. Please review.

Project coverage is 78.65%. Comparing base (48ca3c2) to head (003f95d). Report is 25 commits behind head on master.

Files Patch % Lines
.../java/com/networknt/schema/UnionTypeValidator.java 50.00% 0 Missing and 2 partials :warning:
...java/com/networknt/schema/NotAllowedValidator.java 66.66% 1 Missing :warning:
...n/java/com/networknt/schema/RequiredValidator.java 50.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1062 +/- ## ============================================ - Coverage 78.90% 78.65% -0.25% - Complexity 1965 2018 +53 ============================================ Files 172 190 +18 Lines 6352 6536 +184 Branches 1255 1244 -11 ============================================ + Hits 5012 5141 +129 - Misses 867 923 +56 + Partials 473 472 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.