We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5adabb4 commit a872facCopy full SHA for a872fac
2 files changed
.github/workflows/ci.yml
@@ -14,7 +14,7 @@ jobs:
14
uses: actions/setup-java@v4
15
with:
16
java-version: '17'
17
- distribution: adopt
+ distribution: 'temurin'
18
cache: maven
19
- name: Build with Maven
20
run: mvn --batch-mode --update-snapshots verify
src/main/java/core/basesyntax/Counter.java
@@ -12,7 +12,7 @@ public Counter(int value) {
12
this.value = value;
13
}
- public void decreaseValue() {
+ public synchronized void decreaseValue() {
logger.info(String.format(MESSAGE,
"Before decrementing", Thread.currentThread().getName(), value));
value--;
0 commit comments