File tree Expand file tree Collapse file tree
smile/src/main/java/tools/jackson/dataformat/smile Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -574,7 +574,7 @@ private final void _expandSeenStringValues(String newText)
574574 newShared = oldShared ;
575575 _seenStringValueCount = 0 ; // could also clear, but let's not yet bother
576576 } else {
577- int newSize = (len == DEFAULT_NAME_BUFFER_LENGTH ) ? 256 : SmileConstants .MAX_SHARED_STRING_VALUES ;
577+ int newSize = (len == DEFAULT_STRING_VALUE_BUFFER_LENGTH ) ? 256 : SmileConstants .MAX_SHARED_STRING_VALUES ;
578578 newShared = Arrays .copyOf (oldShared , newSize );
579579 }
580580 _seenStringValues = newShared ;
@@ -1853,7 +1853,7 @@ private final String[] _expandSeenNames(String[] oldShared)
18531853 newShared = oldShared ;
18541854 _seenNameCount = 0 ; // could also clear, but let's not yet bother
18551855 } else {
1856- int newSize = (len == DEFAULT_STRING_VALUE_BUFFER_LENGTH ) ? 256 : SmileConstants .MAX_SHARED_NAMES ;
1856+ int newSize = (len == DEFAULT_NAME_BUFFER_LENGTH ) ? 256 : SmileConstants .MAX_SHARED_NAMES ;
18571857 newShared = Arrays .copyOf (oldShared , newSize );
18581858 }
18591859 return newShared ;
You can’t perform that action at this time.
0 commit comments