Skip to content

Commit 2ec1d75

Browse files
OwenSanzasclaude
andcommitted
Refactor XMLTokener.unescapeEntity() to reduce complexity
Extracted hex and decimal parsing logic into separate methods to address SonarQube complexity warning: - parseHexEntity(): handles &#xABC; format - parseDecimalEntity(): handles &#123; format This reduces cyclomatic complexity while maintaining identical functionality and all validation checks. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 534ce3c commit 2ec1d75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+43
-28
lines changed

org/json/CDL.class

5.2 KB
Binary file not shown.

org/json/Cookie.class

3.32 KB
Binary file not shown.

org/json/CookieList.class

1.73 KB
Binary file not shown.

org/json/HTTP.class

2.35 KB
Binary file not shown.

org/json/HTTPTokener.class

887 Bytes
Binary file not shown.

org/json/JSONArray.class

20 KB
Binary file not shown.

org/json/JSONException.class

560 Bytes
Binary file not shown.

org/json/JSONML.class

7.78 KB
Binary file not shown.
1.4 KB
Binary file not shown.

org/json/JSONObject$Null.class

546 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)