pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1666332 - /pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/TestPreflightPath.java
Date Thu, 12 Mar 2015 22:40:02 GMT
Author: tilman
Date: Thu Mar 12 22:40:02 2015
New Revision: 1666332

URL: http://svn.apache.org/r1666332
Log:
PDFBOX-2576: remove unneeded casts

Modified:
    pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/TestPreflightPath.java

Modified: pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/TestPreflightPath.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/TestPreflightPath.java?rev=1666332&r1=1666331&r2=1666332&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/TestPreflightPath.java
(original)
+++ pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/TestPreflightPath.java
Thu Mar 12 22:40:02 2015
@@ -45,7 +45,7 @@ public class TestPreflightPath
         int position = path.getClosestTypePosition(String.class);
         assertEquals(0, position);
 
-        path.pushObject(new Integer(6));
+        path.pushObject(6);
         assertEquals(2, path.size());
 
         position = path.getClosestTypePosition(String.class);
@@ -68,12 +68,12 @@ public class TestPreflightPath
         Object str = path.peek();
         assertEquals(3, path.size());
         assertEquals(String.class, str.getClass());
-        assertEquals("b", (String) str);
+        assertEquals("b", str);
 
         str = path.pop();
         assertEquals(2, path.size());
         assertEquals(String.class, str.getClass());
-        assertEquals("b", (String) str);
+        assertEquals("b", str);
 
         path.clear();
         assertTrue(path.isEmpty());



Mime
View raw message