Skip to content

Commit

Permalink
fix pmd
Browse files Browse the repository at this point in the history
  • Loading branch information
brharrington committed Aug 26, 2024
1 parent 3194588 commit 52a1a2b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ private static void escapeCodePoint(int codePoint, StringBuilder builder) {
/**
* Escape special characters in the input string to unicode escape sequences (uXXXX).
*/
@SuppressWarnings("PMD")
public static String escape(String str) {
final int length = str.length();
StringBuilder builder = new StringBuilder(length);
Expand All @@ -279,6 +280,7 @@ public static String escape(String str) {
* Unescape unicode characters in the input string. Ignore any invalid or unrecognized
* escape sequences.
*/
@SuppressWarnings("PMD")
public static String unescape(String str) {
final int length = str.length();
StringBuilder builder = new StringBuilder(length);
Expand Down

0 comments on commit 52a1a2b

Please sign in to comment.