Skip to content

Commit 3e4508d

Browse files
committed
PDFBOX-5660: Sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924857 13f79535-47bb-0310-9956-ffa450edef68
1 parent 20e9c28 commit 3e4508d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,31 +284,31 @@ void setValueForAbstractedCheckBoxGroup() throws IOException
284284
}
285285

286286
@Test
287-
void setCheckboxInvalidValue() throws IOException
287+
void setCheckboxInvalidValue()
288288
{
289289
PDCheckBox checkbox = (PDCheckBox) acrobatAcroForm.getField("Checkbox");
290290
// Set a value which doesn't match the radio button list
291291
assertThrows(IllegalArgumentException.class, () -> checkbox.setValue("InvalidValue"));
292292
}
293293

294294
@Test
295-
void setCheckboxGroupInvalidValue() throws IOException
295+
void setCheckboxGroupInvalidValue()
296296
{
297297
PDCheckBox checkbox = (PDCheckBox) acrobatAcroForm.getField("CheckboxGroup");
298298
// Set a value which doesn't match the radio button list
299299
assertThrows(IllegalArgumentException.class, () -> checkbox.setValue("InvalidValue"));
300300
}
301301

302302
@Test
303-
void setAbstractedCheckboxInvalidValue() throws IOException
303+
void setAbstractedCheckboxInvalidValue()
304304
{
305305
PDField checkbox = acrobatAcroForm.getField("Checkbox");
306306
// Set a value which doesn't match the radio button list
307307
assertThrows(IllegalArgumentException.class, () -> checkbox.setValue("InvalidValue"));
308308
}
309309

310310
@Test
311-
void setAbstractedCheckboxGroupInvalidValue() throws IOException
311+
void setAbstractedCheckboxGroupInvalidValue()
312312
{
313313
PDField checkbox = acrobatAcroForm.getField("CheckboxGroup");
314314
// Set a value which doesn't match the radio button list
@@ -374,15 +374,15 @@ void setValueForAbstractedAcrobatRadioButton() throws IOException
374374
}
375375

376376
@Test
377-
void setRadioButtonInvalidValue() throws IOException
377+
void setRadioButtonInvalidValue()
378378
{
379379
PDRadioButton radioButton = (PDRadioButton) acrobatAcroForm.getField("RadioButtonGroup");
380380
// Set a value which doesn't match the radio button list
381381
assertThrows(IllegalArgumentException.class, () -> radioButton.setValue("InvalidValue"));
382382
}
383383

384384
@Test
385-
void setAbstractedRadioButtonInvalidValue() throws IOException
385+
void setAbstractedRadioButtonInvalidValue()
386386
{
387387
PDField radioButton = acrobatAcroForm.getField("RadioButtonGroup");
388388
// Set a value which doesn't match the radio button list

0 commit comments

Comments
 (0)