Replace braces with semicolon
已回答
Is there any shortcut or way, to replace braces with semicolon. Just wondering if I got joked by someone or it was me accidentally using some kind of IntelliJ function. I'll provide an example of what I mean:
Replace this:
if(seat.getSeatNumber().equals(seatNumber)) {
requestSeat = seat;
break;
}
with:
if(seat.getSeatNumber().equals(seatNumber));
requestSeat = seat;
break;
请先登录再写评论。
Why would you want to do it? It will change the code logic.