This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-jbig2.git
The following commit(s) were added to refs/heads/master by this push:
new 8fc04f8 PDFBOX-5660: Sonar fix
8fc04f8 is described below
commit 8fc04f8185d1a4c2ff59b53d2983ed229142ed70
Author: Tilman Hausherr <[email protected]>
AuthorDate: Wed May 13 11:41:50 2026 +0200
PDFBOX-5660: Sonar fix
---
src/main/java/org/apache/pdfbox/jbig2/TestImage.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/apache/pdfbox/jbig2/TestImage.java
b/src/main/java/org/apache/pdfbox/jbig2/TestImage.java
index fb86ccc..84c916a 100644
--- a/src/main/java/org/apache/pdfbox/jbig2/TestImage.java
+++ b/src/main/java/org/apache/pdfbox/jbig2/TestImage.java
@@ -71,7 +71,7 @@ public class TestImage extends JFrame
Image myImage;
int imgWidth = -1;
int imgHeight = -1;
- Dimension prefSize = null;
+ Dimension myPrefSize = null;
private int scale = 1;
/**
@@ -97,8 +97,8 @@ public class TestImage extends JFrame
@Override
public Dimension getPreferredSize()
{
- if (prefSize != null)
- return this.prefSize;
+ if (myPrefSize != null)
+ return myPrefSize;
else
return super.getPreferredSize();
}
@@ -111,8 +111,8 @@ public class TestImage extends JFrame
@Override
public Dimension getMinimumSize()
{
- if (prefSize != null)
- return prefSize;
+ if (myPrefSize != null)
+ return myPrefSize;
else
return super.getMinimumSize();
}
@@ -149,7 +149,7 @@ public class TestImage extends JFrame
imgHeight = myImage.getHeight(this);
setSize(imgWidth * scale, imgHeight * scale);
- prefSize = getSize();
+ myPrefSize = getSize();
invalidate();
validate();
repaint();
@@ -188,7 +188,7 @@ public class TestImage extends JFrame
this.scale = scale;
setSize(imgWidth * scale, imgHeight * scale);
- prefSize = getSize();
+ myPrefSize = getSize();
revalidate();
repaint();