You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting a string concat to MessageFormat or String.format, certain characters must be escaped properly.
For MessageFormat, single quotes must be represented by ''. This is already done by the code. Open and close parentheses ({ and }) must be escaped by surrounding them in single quotes ('{' and '}'). The sequence {} must be represented as '{}' as '{''}' is actual {'}.
For String.format, the % character must be escaped by a double %%.
The text was updated successfully, but these errors were encountered:
- for MessageFormat, put parentheses in single quotes and look for
open/closed parentheses one after another
- for String.format, escape % as %%
- modify tests in AssistQuickFixTest15
- fixeseclipse-jdt#1366
…1368)
- for MessageFormat, put parentheses in single quotes and look for
open/closed parentheses one after another
- for String.format, escape % as %%
- modify tests in AssistQuickFixTest15
- fixes#1366
jjohnstn
added a commit
to jjohnstn/www.eclipse.org-eclipse
that referenced
this issue
Apr 25, 2024
When converting a string concat to MessageFormat or String.format, certain characters must be escaped properly.
For MessageFormat, single quotes must be represented by ''. This is already done by the code. Open and close parentheses ({ and }) must be escaped by surrounding them in single quotes ('{' and '}'). The sequence {} must be represented as '{}' as '{''}' is actual {'}.
For String.format, the % character must be escaped by a double %%.
The text was updated successfully, but these errors were encountered: