Get the first widget of a PDFBox form field from getWidgets()

MSAL

PDFBox 3.0 removed PDTerminalField.getWidget(), which returned the first of the field's widgets, since a field can have more than one. This calls getWidgets().get(0), as getWidget() did.

org.openrewrite.apache.pdfbox.MigrateFieldWidgets
mod run . --recipe=org.openrewrite.apache.pdfbox.MigrateFieldWidgets

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.