Skip to content

Commit

Permalink
PDFBOX-5576: remove code targeting java <= 8 versions
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1919585 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jul 29, 2024
1 parent 8c65e2a commit 1728dbb
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,6 @@ void testCreateFromImageINT_ARGB() throws IOException
@Test
void testCreateFromImage4BYTE_ABGR() throws IOException
{
// workaround Open JDK bug
// http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7044758
if (System.getProperty("java.runtime.name").equals("OpenJDK Runtime Environment")
&& (System.getProperty("java.specification.version").equals("1.6")
|| System.getProperty("java.specification.version").equals("1.7")
|| System.getProperty("java.specification.version").equals("1.8")))
{
return;
}

PDDocument document = new PDDocument();
BufferedImage image = ImageIO.read(JPEGFactoryTest.class.getResourceAsStream("jpeg.jpg"));

Expand Down Expand Up @@ -243,16 +233,6 @@ void testCreateFromImage4BYTE_ABGR() throws IOException
@Test
void testCreateFromImageUSHORT_555_RGB() throws IOException
{
// workaround Open JDK bug
// http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7044758
if (System.getProperty("java.runtime.name").equals("OpenJDK Runtime Environment")
&& (System.getProperty("java.specification.version").equals("1.6")
|| System.getProperty("java.specification.version").equals("1.7")
|| System.getProperty("java.specification.version").equals("1.8")))
{
return;
}

PDDocument document = new PDDocument();
BufferedImage image = ImageIO.read(JPEGFactoryTest.class.getResourceAsStream("jpeg.jpg"));

Expand Down

0 comments on commit 1728dbb

Please sign in to comment.