Refactor volatile (#2444)

This commit is contained in:
Grzegorz Piwowarek
2017-08-15 15:17:24 +02:00
committed by GitHub
parent 3b5d9585ed
commit 6db067d2c9
2 changed files with 28 additions and 56 deletions

View File

@@ -4,7 +4,7 @@ package com.baeldung.concurrent.volatilekeyword;
public class SharedObject {
private volatile int count=0;
public void increamentCount(){
void increamentCount(){
count++;
}
public int getCount(){