pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1781416 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java
Date Thu, 02 Feb 2017 16:12:44 GMT
Author: tilman
Date: Thu Feb  2 16:12:44 2017
New Revision: 1781416

URL: http://svn.apache.org/viewvc?rev=1781416&view=rev
Log:
PDFBOX-2852: flip equals

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java?rev=1781416&r1=1781415&r2=1781416&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/RemoveAllText.java
Thu Feb  2 16:12:44 2017
@@ -143,8 +143,8 @@ public final class RemoveAllText
             if (token instanceof Operator)
             {
                 Operator op = (Operator) token;
-                if (op.getName().equals("TJ") || op.getName().equals("Tj")
-                        || op.getName().equals("'") || op.getName().equals("\""))
+                if ("TJ".equals(op.getName()) || "Tj".equals(op.getName()) ||
+                     "'".equals(op.getName()) || "\"".equals(op.getName()))
                 {
                     // remove the one argument to this operator
                     newTokens.remove(newTokens.size() - 1);



Mime
View raw message