Skip to content

Commit 672279b

Browse files
committed
PDFBOX-5660: narrow catch
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924378 13f79535-47bb-0310-9956-ffa450edef68
1 parent bafbbe4 commit 672279b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

io/src/main/java/org/apache/pdfbox/io/ScratchFile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.apache.pdfbox.io;
1818

1919
import java.io.File;
20+
import java.io.FileNotFoundException;
2021
import java.io.IOException;
2122
import java.util.ArrayList;
2223
import java.util.BitSet;
@@ -257,7 +258,7 @@ private void enlarge() throws IOException
257258
{
258259
raf = new java.io.RandomAccessFile(file, "rw");
259260
}
260-
catch (IOException e)
261+
catch (FileNotFoundException e)
261262
{
262263
if (!file.delete())
263264
{

0 commit comments

Comments
 (0)