-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jump to definition on break/continue
Signed-off-by: Snjezana Peco <[email protected]>
- Loading branch information
Showing
3 changed files
with
148 additions
and
1 deletion.
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
26 changes: 26 additions & 0 deletions
26
...eclipse.jdt.ls.tests/projects/maven/salut/src/main/java/org/sample/TestBreakContinue.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,26 @@ | ||
package org.sample; | ||
|
||
public class TestBreakContinue { | ||
|
||
public static void main(String[] args) { | ||
int i = 0; | ||
outer: while (true) { | ||
System.out.println(i); | ||
while (true) { | ||
i++; | ||
if (i == 1) { | ||
continue; // inner | ||
} | ||
if (i == 3) { | ||
continue outer; | ||
} | ||
if (i == 5) { | ||
break; //inner | ||
} | ||
if (i == 7) { | ||
break outer; | ||
} | ||
} | ||
} | ||
} | ||
} |
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