Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.0 PDFBox
-
None
-
Patch
Description
PDFBox code base in some places uses equals() to test for enum equality. This is unnecessary since enum values are guaranteed to be unique. This patch replaces calls to equals() with comparison operators, which IMHO makes the code easier to read. Comparison using == / != is null safe too, so there should nothing to worry about.