private static void deleteCacheFile ( final File cacheFile ) { try { if ( cacheFile . delete ( ) ) { LOG . warn ( String . format ( MSG_CACHE_FILE_IS_DAMAGED_AND_DELETED , cacheFile . getPath ( ) ) ) ; } else { LOG . warn ( String . format ( MSG_CACHE_FILE_IS_DAMAGED , cacheFile . getPath ( ) ) ) ; } } catch ( final Exception e ) { LOG . warn ( String . format ( MSG_CACHE_FILE_IS_DAMAGED , cacheFile . getPath ( ) ) ) ; } }
Removes the given cache file because it contains damaged content .