lab5 preparations for pull request

This commit is contained in:
Zakharov_Rostislav 2023-12-09 09:52:47 +04:00
parent 49c7245c3b
commit 3e82235fc8

View File

@ -186,12 +186,12 @@ public class FrameShipsCollection extends JFrame {
private void buttonTrashClick(){ private void buttonTrashClick(){
if (trashCollection.size() == 0) if (trashCollection.size() == 0)
return; return;
FrameBattleship Frame; FrameBattleship frame;
try { try {
Frame = new FrameBattleship(); frame = new FrameBattleship();
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
Frame.setShip(trashCollection.pop()); frame.setShip(trashCollection.pop());
} }
} }