mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: Describe StringLiteral.getValue() behavior for unpaired surrogates
This commit is contained in:
@@ -734,6 +734,9 @@ class StringLiteral extends Literal, @stringliteral {
|
||||
/**
|
||||
* Gets the string represented by this string literal, that is, the content
|
||||
* of the literal without enclosing quotes and with escape sequences translated.
|
||||
*
|
||||
* Unpaired Unicode surrogate characters (U+D800 to U+DFFF) are replaced with the
|
||||
* replacement character U+FFFD.
|
||||
*/
|
||||
override string getValue() { result = super.getValue() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user