-
-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(comment): fixes pretty-printing bug for inline arrays with commen…
…ts (closes #911)
- Loading branch information
1 parent
a694956
commit b2951a7
Showing
3 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/test/java/spoon/test/arrays/testclasses/NewArrayWithComment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package spoon.test.arrays.testclasses; | ||
|
||
public class NewArrayWithComment | ||
{ | ||
String[] anArray1 = new String[]{"a","b"/*,"c"*/}; | ||
String[] anArray2 = new String[]{ | ||
"a", //a comment | ||
"b", //b comment | ||
"c" //c comment | ||
}; | ||
} |