handlebars.java
handlebars.java copied to clipboard
Ammend more consistent naming using CharSequence instead of String
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