Skip to content

Commit

Permalink
Revert "Simplify constructing chars"
Browse files Browse the repository at this point in the history
This reverts commit 3650540.
  • Loading branch information
daniellansun committed Jan 14, 2025
1 parent 3650540 commit c1ea140
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Object doCall(String _0, String _1, String _2) {
return _0;
}

return _1 + ((char) Integer.parseInt(_2, 16));
return _1 + new String(Character.toChars(Integer.parseInt(_2, 16)));
}
});
}
Expand All @@ -63,7 +63,7 @@ Object doCall(String _0, String _1, String _2) {
return _0;
}

return _1 + ((char) Integer.parseInt(_2, 8));
return _1 + new String(Character.toChars(Integer.parseInt(_2, 8)));
}
});
}
Expand Down Expand Up @@ -251,4 +251,4 @@ public static boolean isEmpty(final CharSequence cs) {
* Represents a failed index search.
*/
private static final int INDEX_NOT_FOUND = -1;
}
}

0 comments on commit c1ea140

Please sign in to comment.