Skip to content

Commit

Permalink
(doc) Fix instantiation of DiskFileItemFactory in migration guide (#273)
Browse files Browse the repository at this point in the history
DiskFileItemFactory has a private constructor.
  • Loading branch information
chkpnt committed Feb 8, 2024
1 parent 5825c00 commit 263bb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/site/apt/migration.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Migrating
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
if (JakartaServletFileUpload.isMultipartContent(req)) {
final DiskFileItemFactory fileItemfactory = new DiskFileItemFactory();
final DiskFileItemFactory fileItemfactory = DiskFileItemFactory.builder().get();
final JakartaServletFileUpload fileUpload = new JakartaServletFileUpload(fileItemfactory);
final List<FileItem> items;
try {
Expand Down

0 comments on commit 263bb03

Please sign in to comment.