Skip to content

Commit 132848d

Browse files
committed
refator: Thread.interrupted-> Thread.interrupt로 변경
1 parent b71a6e4 commit 132848d

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/nhnacademy/leejungbum/mart2/mart

1 file changed

+1
-1
lines changed

src/main/java/org/nhnacademy/leejungbum/mart2/mart/Store.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void buy(int i) {
4141
goods.wait();
4242
Thread.sleep(100);
4343
} catch (InterruptedException ignore) {
44-
Thread.interrupted();
44+
Thread.currentThread().interrupt();
4545
}
4646
}
4747
int tmp = goods.get(i) - 1;

0 commit comments

Comments
 (0)