Skip to content

Commit

Permalink
PDFBOX-5884: Sonar fix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1921208 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Oct 9, 2024
1 parent f11151f commit c4eaa99
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand All @@ -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;
Expand Down

0 comments on commit c4eaa99

Please sign in to comment.