We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2866ce4 commit 82cbaa6Copy full SHA for 82cbaa6
src/main/java/com/rampatra/threads/ProducerConsumerUsingWaitNotify.java
@@ -12,7 +12,7 @@ public class ProducerConsumerUsingWaitNotify {
12
private static int currSize = 0;
13
private static int totalSize = 10;
14
private static int[] buffer = new int[totalSize];
15
- private static Object lock = new Object();
+ private static final Object lock = new Object();
16
17
static class Producer {
18
void produce() throws InterruptedException {
0 commit comments