Axel Howind created PDFBOX-5674:
-----------------------------------
Summary: refactor string operations
Key: PDFBOX-5674
URL: https://issues.apache.org/jira/browse/PDFBOX-5674
Project: PDFBox
Issue Type: Bug
Reporter: Axel Howind
Attachments: refactor_String_operations.patch
* Conversion of StringBuilder to String was simplified by using the objects
directly in the concatenation, instead of calling the toString() function.
* The equality check for empty strings was converted from an equals method call
("".equals(stringVar)) to use the isEmpty() method.
* When obtaining a one-character substring from a string, charAt() was used in
preference over substring().
* The new keyword was discarded when converting a single character into a
string, using String.valueOf() instead.
* The creation of a string from a ByteArrayOutputStream was simplified to call
toString(encoding) directly.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]