Skip to content

Commit 504a582

Browse files
1 parent cd26b74 commit 504a582

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/resources/META-INF/rewrite/examples.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,10 @@ examples:
16261626
static void addToIterativeFor(Object obj) {
16271627
for (int i = 0; ; ) obj.notify();
16281628
}
1629+
1630+
static void addToForEach(int[] arr) {
1631+
for (int i : arr) System.out.println(i);
1632+
}
16291633
}
16301634
after: |
16311635
class Test {
@@ -1676,6 +1680,12 @@ examples:
16761680
obj.notify();
16771681
}
16781682
}
1683+
1684+
static void addToForEach(int[] arr) {
1685+
for (int i : arr) {
1686+
System.out.println(i);
1687+
}
1688+
}
16791689
}
16801690
language: java
16811691
---

0 commit comments

Comments
 (0)