src/main/java/ognl/IntHashMap.java
protected void rehash()
    {
        int         oldCapacity = table.length;
        Entry       oldTable[] = table;
        int         newCapacity = oldCapacity * 2 + 1;
        Entry       newTable[] = new Entry[newCapacity];

        threshold = (int)(newCapacity * loadFactor);
        table = newTable;
        for (int i = oldCapacity ; i-- > 0 ;) {
            for (Entry old = oldTable[i] ; old != null;) {
                Entry       e = old;
                int         index = ( e.hash & 0x7FFFFFFF ) % newCapacity;

                old = old.next;
                e.next = newTable[index];
                newTable[index] = e;
            }
        }
    }
protected void rehash()
    {
        int         oldCapacity = table.length;
        Entry       oldTable[] = table;
        int         newCapacity = oldCapacity * 2 + 1;
        Entry       newTable[] = new Entry[newCapacity];

        threshold = (int)(newCapacity * loadFactor);
        table = newTable;
        for (int i = oldCapacity ; i-- > 0 ;) {
            for (Entry old = oldTable[i] ; old != null;) {
                Entry       e = old;
                int         index = ( e.hash & 0x7FFFFFFF ) % newCapacity;

                old = old.next;
                e.next = newTable[index];
                newTable[index] = e;
            }
        }
    }
protected void rehash ( ) { int oldCapacity = table . length ; Entry oldTable [ ] = table ; int newCapacity = oldCapacity * 2 + 1 ; Entry newTable [ ] = new Entry [ newCapacity ] ; threshold = ( int ) ( newCapacity * loadFactor ) ; table = newTable ; for ( int i = oldCapacity ; i -- > 0 ; ) { for ( Entry old = oldTable [ i ] ; old != null ; ) { Entry e = old ; int index = ( e . hash & 0x7FFFFFFF ) % newCapacity ; old = old . next ; e . next = newTable [ index ] ; newTable [ index ] = e ; } } }
/*===================================================================
Protected methods
===================================================================
/ * =================================================================== Protected methods ===================================================================