Skip to content

Commit

Permalink
minor change to VariableUtil class in fop-ext
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingBush committed Nov 24, 2023
1 parent 618703a commit e2078bd
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ public class VariableUtil extends org.krysalis.barcode4j.tools.VariableUtil {
* @param msg the message
* @return the message after the variable processing
*/
public static String getExpandedMessage(PageViewport page, String msg) {
PageInfo pageInfo = null;
if (page != null) {
pageInfo = new PageInfo(page.getPageNumber(), page.getPageNumberString());
}
public static String getExpandedMessage(final PageViewport page, final String msg) {
final PageInfo pageInfo = page != null ? new PageInfo(page.getPageNumber(), page.getPageNumberString()) : null;

return getExpandedMessage(pageInfo, msg);
}

Expand Down

0 comments on commit e2078bd

Please sign in to comment.