You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another note: we should not wrap single statements in run when fixing such issues. The provided example will then be fine: ?: break compiles. If there is any logic before break, though, it'll still not work.
Describe the bug
Consider the following code:
Expected behavior
TBD
After the
mvn diktat:fix@diktat
this block changes to the following, which couldn't be compiled:Observed behavior
Error: break or continue jumps across a function or a class boundary
The text was updated successfully, but these errors were encountered: