handlebars.java icon indicating copy to clipboard operation
handlebars.java copied to clipboard

Ammend more consistent naming using CharSequence instead of String

Open ralfs-gutmanis opened this issue 3 years ago • 0 comments

Background As part of security requirements - to avoid leaving traces of very sensitive data in memory, we are trying to clear memory as much as it is possible. All instance of java.lang.String are immutable and stay in memory until Garbage Collector deletes them.

Solution Avoid needlessly calling .toString() if the value already is a CharSequence

ralfs-gutmanis avatar Sep 06 '23 08:09 ralfs-gutmanis