Fix checkstyle
This commit is contained in:
parent
12f1d96914
commit
096e4c95ef
@ -38,9 +38,12 @@ public abstract class AbstractMessageBuf<T> extends AbstractQueue<T> implements
|
||||
long refCntFieldOffset = -1;
|
||||
try {
|
||||
if (PlatformDependent.hasUnsafe()) {
|
||||
refCntFieldOffset = PlatformDependent.objectFieldOffset(AbstractMessageBuf.class.getDeclaredField("refCnt"));
|
||||
refCntFieldOffset = PlatformDependent.objectFieldOffset(
|
||||
AbstractMessageBuf.class.getDeclaredField("refCnt"));
|
||||
}
|
||||
} catch (Throwable ignored) { }
|
||||
} catch (Throwable t) {
|
||||
// Ignored
|
||||
}
|
||||
|
||||
REFCNT_FIELD_OFFSET = refCntFieldOffset;
|
||||
}
|
||||
|
@ -30,9 +30,12 @@ public abstract class AbstractReferenceCounted implements ReferenceCounted {
|
||||
long refCntFieldOffset = -1;
|
||||
try {
|
||||
if (PlatformDependent.hasUnsafe()) {
|
||||
refCntFieldOffset = PlatformDependent.objectFieldOffset(AbstractReferenceCounted.class.getDeclaredField("refCnt"));
|
||||
refCntFieldOffset = PlatformDependent.objectFieldOffset(
|
||||
AbstractReferenceCounted.class.getDeclaredField("refCnt"));
|
||||
}
|
||||
} catch (Throwable ignored) { }
|
||||
} catch (Throwable t) {
|
||||
// Ignored
|
||||
}
|
||||
|
||||
REFCNT_FIELD_OFFSET = refCntFieldOffset;
|
||||
}
|
||||
|
@ -34,9 +34,12 @@ public abstract class AbstractReferenceCountedByteBuf extends AbstractByteBuf {
|
||||
long refCntFieldOffset = -1;
|
||||
try {
|
||||
if (PlatformDependent.hasUnsafe()) {
|
||||
refCntFieldOffset = PlatformDependent.objectFieldOffset(AbstractReferenceCountedByteBuf.class.getDeclaredField("refCnt"));
|
||||
refCntFieldOffset = PlatformDependent.objectFieldOffset(
|
||||
AbstractReferenceCountedByteBuf.class.getDeclaredField("refCnt"));
|
||||
}
|
||||
} catch (Throwable ignored) { }
|
||||
} catch (Throwable t) {
|
||||
// Ignored
|
||||
}
|
||||
|
||||
REFCNT_FIELD_OFFSET = refCntFieldOffset;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user