Skip to content

Commit 07e073f

Browse files
Fix minor porting issue with Set.toArray() method
In .NET there is no toArray() overload, only toArray(T[] array).
1 parent 9ef83fb commit 07e073f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms/src/test/java/com/itextpdf/forms/PdfFormFieldTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public void unicodeFormFieldTest() throws IOException {
137137
PdfAcroForm form = PdfAcroForm.getAcroForm(pdfDoc, true);
138138
Map<String, PdfFormField> formFields = form.getFormFields();
139139
byte[] result = {(byte) 0xFE,(byte) 0xFF,(byte) 0x5E,(byte) 0x10,(byte) 0x53,(byte) 0xF7,(byte) 0x00,(byte) 0x31}; // 帐号1: account number 1
140-
Assert.assertArrayEquals(formFields.keySet().toArray()[0].toString().getBytes(), result);
140+
Assert.assertArrayEquals(formFields.keySet().toArray(new String[1])[0].getBytes(), result);
141141
}
142142

143143
@Test

0 commit comments

Comments
 (0)