Skip to content

Commit

Permalink
fix JDT warnings exposed by the build
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed Oct 30, 2023
1 parent 666bdf4 commit 759bdb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ private void clearWhiteSpacePdfFieldsFromPdf(String filePath) {
filePath, e);
return;
}
com.aspose.pdf.Document pdfDoc = new com.aspose.pdf.Document(filePath);

cleanPdfFields(pdfDoc.getForm().getFields());
pdfDoc.save(filePath);
try(com.aspose.pdf.Document pdfDoc = new com.aspose.pdf.Document(filePath)) {
cleanPdfFields(pdfDoc.getForm().getFields());
pdfDoc.save(filePath);
}
}

private static void cleanPdfFields(com.aspose.pdf.Field[] fields) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
import java.util.Map;
import java.util.Set;

import org.apache.commons.beanutils.MethodUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.reflect.FieldUtils;

import ch.ivyteam.api.API;
import ch.ivyteam.ivy.addons.docfactory.TemplateMergeField;
Expand Down

0 comments on commit 759bdb2

Please sign in to comment.