@ Override @ SuppressWarnings ( { "unchecked" } ) public synchronized Enumeration < Object > keys ( ) { Enumeration < Object > keysEnum = super . keys ( ) ; @ SuppressWarnings ( "rawtypes" ) Vector keyList = new Vector <> ( ) ; // NOPMD - vector used on purpose here... while ( keysEnum . hasMoreElements ( ) ) { keyList . add ( keysEnum . nextElement ( ) ) ; } Collections . sort ( keyList ) ; // reverse this list to have the newest items on top Collections . reverse ( keyList ) ; return keyList . elements ( ) ; }
Overrides called by the store method .