Skip to content

StringBuilder vs StringBuffer #129

@valerybokov

Description

@valerybokov

Hello!
I found that you often use StringBuffer class in your code. The StringBuffer is a thread-safe type, so it is slower then StringBuilder. You can instantiate StringBuilders if you use them only inside one method. For example: Base64Util.encode, ClassReferenceFixer.newDescriptor, Constant.toString0, DataEntryTokenizer.nextToken and many other methods.

Best regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions