File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 35
35
import java .io .BufferedWriter ;
36
36
import java .io .File ;
37
37
import java .io .FileInputStream ;
38
- import java .io .FileNotFoundException ;
39
38
import java .io .FileOutputStream ;
40
39
import java .io .FileReader ;
41
40
import java .io .IOException ;
42
41
import java .io .OutputStreamWriter ;
43
42
import java .io .Writer ;
43
+ import java .nio .file .NoSuchFileException ;
44
44
import java .nio .file .Paths ;
45
45
import java .util .ArrayList ;
46
46
import java .util .Collections ;
@@ -790,7 +790,7 @@ public void clear(Repository repository) {
790
790
// Remove all files which constitute the history cache.
791
791
try {
792
792
IOUtils .removeRecursive (Paths .get (histDir ));
793
- } catch (FileNotFoundException ex ) {
793
+ } catch (NoSuchFileException ex ) {
794
794
LOGGER .log (Level .WARNING , "directory {} does not exist" , histDir );
795
795
} catch (IOException ex ) {
796
796
LOGGER .log (Level .SEVERE , "tried removeRecursive()" , ex );
You can’t perform that action at this time.
0 commit comments