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 a42bf5495e
commit 6b8c87997c

View File

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