-
-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
review: refactor(label): remove labelledStatement that was not used #1398
Conversation
What about keeping only the getter |
It's nit a so trivial task and this api is buggy since the beginning and nobody complain. I will not spend time on a feature that nobody wants |
I understand, thanks for initiating the PR.
@surli could you have a look at this, thanks?
|
You mean to review this PR or to implement it as a derived property? |
to implement it as a derived property.
Thanks,
…--Martin
|
you can test this public static void main(String[] args) {
label2:
{
System.out.println("block");
if (args.length != 0 && args[0].equals("test")) {
System.out.println("block after break3");
break label2;
}
if (args.length ==1 && args[0].equals("test")) {
System.out.println("block after break1");
break label2;
}
System.out.println("block after break");
}
sw:
switch ("f") {
case "f":
label:
do {
System.out.println("do");
while (true) {
for (int i = 0; i < 4; i++) {
System.out.println("for");
label2:
{
System.out.println("test");
break label2;
}
System.out.println("for 1");
}
break;
}
break;
} while (true);
break;
}
} |
…d Continue should have the same behaviour. Add a new interface.
I'm not sure about this. To be discussed. |
Revapi Analysis resultsOld API: fr.inria.gforge.spoon:spoon-core:jar:5.8.0-20170619.224547-48 New API: fr.inria.gforge.spoon:spoon-core:jar:5.8.0-SNAPSHOT Detected changes: 2. Change 1
Change 2
Change 2
Change 2
|
The property labelledStatement was always equals to null.
Fix #1381