Skip to content

Commit 91ca883

Browse files
committed
tiny renaming to improve consistency between symbol table impls
1 parent 6f1df52 commit 91ca883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ private void _handleSpillOverflow(int bucketIndex, Bucket newBucket, int mainInd
537537
if (_overflows.get(bucketIndex)) {
538538
// Has happened once already for this bucket index, so probably not coincidental...
539539
if (JsonFactory.Feature.FAIL_ON_SYMBOL_HASH_OVERFLOW.enabledIn(_flags)) {
540-
reportTooManyCollisions(MAX_COLL_CHAIN_LENGTH);
540+
_reportTooManyCollisions(MAX_COLL_CHAIN_LENGTH);
541541
}
542542
// but even if we don't fail, we will stop canonicalizing as safety measure
543543
// (so as not to cause problems with PermGen)
@@ -712,7 +712,7 @@ private void rehash() {
712712
*
713713
* @since 2.1
714714
*/
715-
protected void reportTooManyCollisions(int maxLen) {
715+
protected void _reportTooManyCollisions(int maxLen) {
716716
throw new IllegalStateException("Longest collision chain in symbol table (of size "+_size
717717
+") now exceeds maximum, "+maxLen+" -- suspect a DoS attack based on hash collisions");
718718
}

0 commit comments

Comments
 (0)