Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
IntelliJ demanded attention.
Dieser Commit ist enthalten in:
Ursprung
57bb5470eb
Commit
eba1114b39
@ -57,6 +57,7 @@ public class For extends Node {
|
|||||||
ret = body.getValue();
|
ret = body.getValue();
|
||||||
} catch (BreakException e) {
|
} catch (BreakException e) {
|
||||||
if (e.doContinue) {
|
if (e.doContinue) {
|
||||||
|
//noinspection UnnecessaryContinue
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
@ -61,6 +61,7 @@ public class SimpleFor extends Node {
|
|||||||
ret = body.getValue();
|
ret = body.getValue();
|
||||||
} catch (BreakException e) {
|
} catch (BreakException e) {
|
||||||
if (e.doContinue) {
|
if (e.doContinue) {
|
||||||
|
//noinspection UnnecessaryContinue
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
@ -157,9 +157,7 @@ public class Switch extends Node implements RValue {
|
|||||||
final RValue invokable = defaultCase.optimize();
|
final RValue invokable = defaultCase.optimize();
|
||||||
|
|
||||||
if (invokable instanceof Sequence) {
|
if (invokable instanceof Sequence) {
|
||||||
for (RValue subInvokable : ((Sequence) invokable).sequence) {
|
Collections.addAll(newSequence, ((Sequence) invokable).sequence);
|
||||||
newSequence.add(subInvokable);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
newSequence.add(invokable);
|
newSequence.add(invokable);
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,7 @@ public class While extends Node {
|
|||||||
ret = body.getValue();
|
ret = body.getValue();
|
||||||
} catch (BreakException e) {
|
} catch (BreakException e) {
|
||||||
if (e.doContinue) {
|
if (e.doContinue) {
|
||||||
|
//noinspection UnnecessaryContinue
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren