question: public void clear ( ) { synchronized ( lock ) { File [ ] files = cachePath . listFiles ( ) ; if ( files == null ) { return ; } for ( File file : files ) { removeFile ( file ) ; } pendingTasks . clear ( ) ; } }
target:  Gets rid of all pending commands.