Skip to content

Commit c1c2730

Browse files
committed
PDFBOX-6206: remove unneeded throws
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1934705 13f79535-47bb-0310-9956-ffa450edef68
1 parent 89d12d4 commit c1c2730

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroFormTest.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -479,20 +479,13 @@ private int countWidgets(PDDocument documentToTest)
479479
int count = 0;
480480
for (PDPage page : documentToTest.getPages())
481481
{
482-
try
482+
for (PDAnnotation annotation : page.getAnnotations())
483483
{
484-
for (PDAnnotation annotation : page.getAnnotations())
484+
if (annotation instanceof PDAnnotationWidget)
485485
{
486-
if (annotation instanceof PDAnnotationWidget)
487-
{
488-
count ++;
489-
}
486+
count++;
490487
}
491488
}
492-
catch (IOException e)
493-
{
494-
// ignoring
495-
}
496489
}
497490
return count;
498491
}

0 commit comments

Comments
 (0)