Skip to content

Commit b05319e

Browse files
iamdanfoxdansanduleac
authored andcommitted
Test captures NON-NLS comment behaviour (#55)
We have a test case capturing p-j-f's handling on NON-NLS comments. It does not yet behave in a sensible way.
1 parent 01dbe0d commit b05319e

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package test;
2+
3+
class MultilineStringConstant {
4+
5+
// NON-NLS comments are required for i18n, it's important they are kept with their strings.
6+
private static final String MULTIPLE_LINE_NON_NLS =
7+
"field_0," + //$NON-NLS-1$
8+
"field_1," + //$NON-NLS-1$
9+
"field_2," + //$NON-NLS-1$
10+
"field_3," + //$NON-NLS-1$
11+
"field_4"; //$NON-NLS-1$
12+
13+
private static final String MULTIPLE_LINE_NO_COMMENT =
14+
"field_0," +
15+
"field_1," +
16+
"field_2," +
17+
"field_3," +
18+
"field_4";
19+
20+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package test;
2+
3+
class MultilineStringConstant {
4+
5+
// NON-NLS comments are required for i18n, it's important they are kept with their strings.
6+
private static final String MULTIPLE_LINE_NON_NLS =
7+
"field_0,"
8+
+ //$NON-NLS-1$
9+
"field_1,"
10+
+ //$NON-NLS-1$
11+
"field_2,"
12+
+ //$NON-NLS-1$
13+
"field_3,"
14+
+ //$NON-NLS-1$
15+
"field_4"; //$NON-NLS-1$
16+
17+
private static final String MULTIPLE_LINE_NO_COMMENT =
18+
"field_0," + "field_1," + "field_2," + "field_3," + "field_4";
19+
}

0 commit comments

Comments
 (0)