Re: RFR: JDK-8322218: Better escaping of single and double quotes in annotation toString() results

2024-02-06 Thread Mandy Chung
On Thu, 1 Feb 2024 01:32:42 GMT, Joe Darcy wrote: > A double quote character doesn't need to be escaped when it is a char literal > and single quote character doesn't need to be escaped when it is in a string. > This change updates the toString() output of annotations to account for the >

RFR: JDK-8322218: Better escaping of single and double quotes in annotation toString() results

2024-01-31 Thread Joe Darcy
A double quote character doesn't need to be escaped when it is a char literal and single quote character doesn't need to be escaped when it is in a string. This change updates the toString() output of annotations to account for the different escaping requirements of strings and characters.