Add final keyword which was missing in 47b598e6ce

Motivation:

The two fields should have final keyword.

Modifications:

Add final keyword

Result:

Cleaner code.
This commit is contained in:
Norman Maurer 2016-03-14 09:00:50 +01:00
parent 83c349ffa9
commit 7d12333c38

View File

@ -58,15 +58,16 @@ abstract class PoolArena<T> implements PoolArenaMetric {
private final List<PoolChunkListMetric> chunkListMetrics;
// Metrics for allocations and deallocations
private LongCounter allocationsTiny = PlatformDependent.newLongCounter();
private LongCounter allocationsSmall = PlatformDependent.newLongCounter();
private long allocationsNormal;
// We need to use the LongCounter here as this is not guarded via synchronized block.
private final LongCounter allocationsTiny = PlatformDependent.newLongCounter();
private final LongCounter allocationsSmall = PlatformDependent.newLongCounter();
private final LongCounter allocationsHuge = PlatformDependent.newLongCounter();
private long deallocationsTiny;
private long deallocationsSmall;
private long deallocationsNormal;
// We need to use the LongCounter here as this is not guarded via synchronized block.
private final LongCounter deallocationsHuge = PlatformDependent.newLongCounter();