Skip to content

LoopOverCharArray in JSONStringify #9

@agentgt

Description

@agentgt

for(char c : string.toCharArray()) {

[WARNING] JSONStringify.java:[249,2] [LoopOverCharArray] toCharArray allocates a new array, using charAt is more efficient
    (see https://errorprone.info/bugpattern/LoopOverCharArray)
  Did you mean 'for (int i = 0; i < string.length(); i++) { char c = string.charAt(i);if (c == qt) {'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions