src/main/java/org/jivesoftware/smack/util/collections/AbstractHashedMap.java
public void clear() {
        modCount++;
        HashEntry[] data = this.data;
        for (int i = data.length - 1; i >= 0; i--) {
            data[i] = null;
        }
        size = 0;
    }
public void clear() {
        modCount++;
        HashEntry[] data = this.data;
        for (int i = data.length - 1; i >= 0; i--) {
            data[i] = null;
        }
        size = 0;
    }
public void clear ( ) { modCount ++ ; HashEntry [ ] data = this . data ; for ( int i = data . length - 1 ; i >= 0 ; i -- ) { data [ i ] = null ; } size = 0 ; }
Clears the map, resetting the size to zero and nullifying references to
avoid garbage collection issues.
Clears the map resetting the size to zero and nullifying references to avoid garbage collection issues .