HBASE-19531 Remove needless volatile declaration

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Yun Chi-Shih 2017-12-18 23:24:58 +08:00 committed by Chia-Ping Tsai
parent 07d20b2d18
commit 5895719420
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ public class BufferedMutatorImpl implements BufferedMutator {
* The {@link ConcurrentLinkedQueue#size()} is NOT a constant-time operation. * The {@link ConcurrentLinkedQueue#size()} is NOT a constant-time operation.
*/ */
private final AtomicInteger undealtMutationCount = new AtomicInteger(0); private final AtomicInteger undealtMutationCount = new AtomicInteger(0);
private volatile long writeBufferSize; private final long writeBufferSize;
private final int maxKeyValueSize; private final int maxKeyValueSize;
private final ExecutorService pool; private final ExecutorService pool;
private final AtomicInteger rpcTimeout; private final AtomicInteger rpcTimeout;

View File

@ -227,7 +227,7 @@ public class HBaseAdmin implements Admin {
private ClusterConnection connection; private ClusterConnection connection;
private volatile Configuration conf; private final Configuration conf;
private final long pause; private final long pause;
private final int numRetries; private final int numRetries;
private final int syncWaitTimeout; private final int syncWaitTimeout;

View File

@ -51,7 +51,7 @@ import java.util.concurrent.ConcurrentSkipListMap;
public class ZKNamespaceManager extends ZKListener { public class ZKNamespaceManager extends ZKListener {
private static final Log LOG = LogFactory.getLog(ZKNamespaceManager.class); private static final Log LOG = LogFactory.getLog(ZKNamespaceManager.class);
private final String nsZNode; private final String nsZNode;
private volatile NavigableMap<String,NamespaceDescriptor> cache; private final NavigableMap<String,NamespaceDescriptor> cache;
public ZKNamespaceManager(ZKWatcher zkw) throws IOException { public ZKNamespaceManager(ZKWatcher zkw) throws IOException {
super(zkw); super(zkw);