eclipse-ee4j / eclipse-ee4j/parsson

Doubt about writeEscapedString()

Open
#8 6 comments 0 reactions 1 assignee Claimed by @lukasj View on GitHub
Dominant language
Java
Stars
17
Forks
25
PR merge metrics
No merged PRs in 30d

Description

There are some doubts about writeEscapedString(). This method
char c = s.charAt![](https://java.net/jira/images/icons/emoticons/information.gif); but then at some place it compares c < 0x10FFFF.

But this test trivially always true since char data type is in the range
0x0000 to 0xFFFF. Is the intention of the code to use s.codePointAt()?
#### Environment
All
#### Affected Versions
[1.0.4]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.