Fix one checkstyle and one compile error caused by the last commit
This commit is contained in:
parent
75b2dd592a
commit
e564157381
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package io.netty.buffer;
|
package io.netty.buffer;
|
||||||
|
|
||||||
|
import io.netty.util.internal.PlatformDependent;
|
||||||
import sun.misc.Unsafe;
|
import sun.misc.Unsafe;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -57,7 +58,7 @@ final class PooledUnsafeDirectByteBuf extends PooledByteBuf<ByteBuffer> {
|
|||||||
if (addressField.getLong(directBuf) == 0) {
|
if (addressField.getLong(directBuf) == 0) {
|
||||||
throw new Error("direct buffer address must be non-zero");
|
throw new Error("direct buffer address must be non-zero");
|
||||||
}
|
}
|
||||||
UnpooledDirectByteBuf.freeDirect(directBuf);
|
PlatformDependent.freeDirectBuffer(directBuf);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
throw new Error(t);
|
throw new Error(t);
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,6 @@ final class PlatformDependent0 {
|
|||||||
return UNSAFE.objectFieldOffset(field);
|
return UNSAFE.objectFieldOffset(field);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private PlatformDependent0() {
|
private PlatformDependent0() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user