kkrugler commented on a change in pull request #377:
URL: https://github.com/apache/tika/pull/377#discussion_r519186522



##########
File path: 
tika-parser-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/PDFMarkedContent2XHTML.java
##########
@@ -500,8 +500,8 @@ public boolean equals(Object o) {
 
             HtmlTag htmlTag = (HtmlTag) o;
 
-            if (tag != null ? !tag.equals(htmlTag.tag) : htmlTag.tag != null) 
return false;
-            return clazz != null ? clazz.equals(htmlTag.clazz) : htmlTag.clazz 
== null;
+            if (!Objects.equals(tag, htmlTag.tag)) return false;
+            return Objects.equals(clazz, htmlTag.clazz);

Review comment:
       Same comment as above




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to