TerminalBlock: preserve comments after continue statement (not in the proper place though)

This commit is contained in:
Tagir Valeev
2018-09-03 19:55:52 +07:00
parent 508007a3e2
commit a0f1b41336
3 changed files with 4 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import java.util.Collection;
public class Test {
void test(int[] arr) {
// comment
Arrays.stream(arr).forEach(x -> {
int y = x * 2;
if (x > y) return;

View File

@@ -6,7 +6,7 @@ public class Test {
void test(int[] arr) {
for<caret>(int x : arr) {
int y = x*2;
if(x > y) continue;
if(x > y) continue; // comment
System.out.println(x);
}
}