You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2025/04/05 18:40:02 UTC
svn commit: r1924827 - /pdfbox/branches/3.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDPageAnnotationsFiltering.java
Author: tilman
Date: Sat Apr 5 18:40:02 2025
New Revision: 1924827
URL: http://svn.apache.org/viewvc?rev=1924827&view=rev
Log:
PDFBOX-5660: Sonar fix
Modified:
pdfbox/branches/3.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDPageAnnotationsFiltering.java
Modified: pdfbox/branches/3.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDPageAnnotationsFiltering.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/3.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDPageAnnotationsFiltering.java?rev=1924827&r1=1924826&r2=1924827&view=diff
==============================================================================
--- pdfbox/branches/3.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDPageAnnotationsFiltering.java (original)
+++ pdfbox/branches/3.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDPageAnnotationsFiltering.java Sat Apr 5 18:40:02 2025
@@ -45,7 +45,7 @@ class TestPDPageAnnotationsFiltering
private PDPage page;
@BeforeEach
- public void initMock()
+ void initMock()
{
COSDictionary mockedPageWithAnnotations = new COSDictionary();
COSArray annotsDictionary = new COSArray();
@@ -57,7 +57,7 @@ class TestPDPageAnnotationsFiltering
}
@Test
- void validateNoFiltering() throws IOException
+ void validateNoFiltering() throws IOException
{
List<PDAnnotation> annotations = page.getAnnotations();
assertEquals(3, annotations.size());
@@ -67,14 +67,14 @@ class TestPDPageAnnotationsFiltering
}
@Test
- void validateAllFiltered() throws IOException
+ void validateAllFiltered() throws IOException
{
List<PDAnnotation> annotations = page.getAnnotations(annotation -> false);
assertEquals(0, annotations.size());
}
@Test
- void validateSelectedFew() throws IOException
+ void validateSelectedFew() throws IOException
{
List<PDAnnotation> annotations = page.getAnnotations(annotation ->
(annotation instanceof PDAnnotationLink || annotation instanceof PDAnnotationSquare));