Skip to content

Commit

Permalink
Improve clarity of code change suggested by static analyzer (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehutch committed Aug 17, 2021
1 parent dbd6feb commit a8de934
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -76,7 +76,7 @@ public final class JSONUtils {
final char hexDigit1 = nibble1 <= 9 ? (char) ('0' + nibble1) : (char) ('A' + nibble1 - 10);
final int nibble0 = c & 0xf;
final char hexDigit0 = nibble0 <= 9 ? (char) ('0' + nibble0) : (char) ('A' + nibble0 - 10);
JSON_CHAR_REPLACEMENTS[c] = "\\u00" + hexDigit1 + hexDigit0;
JSON_CHAR_REPLACEMENTS[c] = "\\u00" + hexDigit1 + "" + hexDigit0;
}
JSON_CHAR_REPLACEMENTS['"'] = "\\\"";
JSON_CHAR_REPLACEMENTS['\\'] = "\\\\";
Expand Down

0 comments on commit a8de934

Please sign in to comment.