From c4eaa9970b15f7fabf22416afe12f271074d13de Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Wed, 9 Oct 2024 13:24:49 +0000 Subject: [PATCH] PDFBOX-5884: Sonar fix git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1921208 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/pdfbox/rendering/PageDrawer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java b/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java index b7f02e9f689..8d760e583fc 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java @@ -2178,7 +2178,7 @@ private boolean isHiddenAndVisibilityExpression(COSArray veArray) else if (base instanceof COSDictionary) { // Another OCG - PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base); + PDPropertyList prop = PDPropertyList.create((COSDictionary) base); boolean isHidden = isHiddenOCG(prop); if (isHidden) { @@ -2207,7 +2207,7 @@ private boolean isHiddenOrVisibilityExpression(COSArray veArray) else if (base instanceof COSDictionary) { // Another OCG - PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base); + PDPropertyList prop = PDPropertyList.create((COSDictionary) base); boolean isHidden = isHiddenOCG(prop); if (!isHidden) { @@ -2233,7 +2233,7 @@ private boolean isHiddenNotVisibilityExpression(COSArray veArray) else if (base instanceof COSDictionary) { // Another OCG - PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base); + PDPropertyList prop = PDPropertyList.create((COSDictionary) base); return !isHiddenOCG(prop); } return false;