Skip to content

Commit 6358adf

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

4 files changed

Lines changed: 8 additions & 16 deletions

File tree

‎debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java‎

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,11 @@ public void init()
133133

134134
private void initRectMap()
135135
{
136-
try
137-
{
138-
collectFieldLocations();
139-
collectLinkLocations();
140-
}
141-
catch (IOException ex)
142-
{
143-
LOG.error(ex.getMessage(), ex);
144-
}
136+
collectFieldLocations();
137+
collectLinkLocations();
145138
}
146139

147-
private void collectLinkLocations() throws IOException
140+
private void collectLinkLocations()
148141
{
149142
for (PDAnnotation annotation : page.getAnnotations())
150143
{
@@ -155,7 +148,7 @@ private void collectLinkLocations() throws IOException
155148
}
156149
}
157150

158-
private void collectLinkLocation(PDAnnotationLink linkAnnotation) throws IOException
151+
private void collectLinkLocation(PDAnnotationLink linkAnnotation)
159152
{
160153
if (linkAnnotation.getRectangle() == null)
161154
{
@@ -201,7 +194,7 @@ private void collectLinkLocation(PDAnnotationLink linkAnnotation) throws IOExcep
201194
}
202195
}
203196

204-
private void collectFieldLocations() throws IOException
197+
private void collectFieldLocations()
205198
{
206199
// get Acroform without applying fixups to enure that we get the original content
207200
PDDocumentFixup fixup = ViewMenu.isRepairAcroformSelected() ? new AcroFormDefaultFixup(document) : null;

‎pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ else if (subEntry instanceof COSDictionary)
15071507
* @param page the new page
15081508
* @param structParentOffset the offset which should be applied
15091509
*/
1510-
private void updateStructParentEntries(PDPage page, int structParentOffset) throws IOException
1510+
private void updateStructParentEntries(PDPage page, int structParentOffset)
15111511
{
15121512
int structParents = page.getStructParents();
15131513
if (structParents >= 0)

‎pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,10 +775,9 @@ private Rectangle2D getTransformedAppearanceBBox(PDAppearanceStream appearanceSt
775775
* @param fields a list of fields to be flattened
776776
* @param pages the page tree
777777
* @return
778-
* @throws IOException
779778
*/
780779
private Map<COSDictionary,Set<COSDictionary>> buildPagesWidgetsMap(
781-
List<PDField> fields, PDPageTree pages) throws IOException
780+
List<PDField> fields, PDPageTree pages)
782781
{
783782
Map<COSDictionary,Set<COSDictionary>> pagesAnnotationsMap = new HashMap<>();
784783
boolean hasMissingPageRef = false;

‎pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestListBox.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class TestListBox
5353
PDListBox choice;
5454

5555
@BeforeEach
56-
void setUp() throws IOException
56+
void setUp()
5757
{
5858
// export values
5959
exportValues = new ArrayList<>();

0 commit comments

Comments
 (0)