public synchronized void cleanup ( boolean deleteTemporary ) { if ( deleteTemporary && tempDirectory != null && tempDirectory . exists ( ) ) { LOGGER . debug ( "Deleting ALL temporary files from `{}`" , tempDirectory . toString ( ) ) ; FileUtils . delete ( tempDirectory ) ; tempDirectory = null ; } }
Cleans up resources to prevent memory leaks .