diff --git a/common/src/main/java/io/netty/util/internal/PlatformDependent.java b/common/src/main/java/io/netty/util/internal/PlatformDependent.java index f728923ff5..a119b92347 100644 --- a/common/src/main/java/io/netty/util/internal/PlatformDependent.java +++ b/common/src/main/java/io/netty/util/internal/PlatformDependent.java @@ -416,7 +416,7 @@ public final class PlatformDependent { * use {@link AtomicReferenceFieldUpdater#newUpdater(Class, Class, String)} as fallback. */ public static AtomicReferenceFieldUpdater newAtomicReferenceFieldUpdater( - Class tclass, String fieldName) { + Class tclass, String fieldName) { if (hasUnsafe()) { try { return PlatformDependent0.newAtomicReferenceFieldUpdater(tclass, fieldName); @@ -433,7 +433,7 @@ public final class PlatformDependent { * use {@link AtomicIntegerFieldUpdater#newUpdater(Class, String)} as fallback. */ public static AtomicIntegerFieldUpdater newAtomicIntegerFieldUpdater( - Class tclass, String fieldName) { + Class tclass, String fieldName) { if (hasUnsafe()) { try { return PlatformDependent0.newAtomicIntegerFieldUpdater(tclass, fieldName); @@ -450,7 +450,7 @@ public final class PlatformDependent { * use {@link AtomicLongFieldUpdater#newUpdater(Class, String)} as fallback. */ public static AtomicLongFieldUpdater newAtomicLongFieldUpdater( - Class tclass, String fieldName) { + Class tclass, String fieldName) { if (hasUnsafe()) { try { return PlatformDependent0.newAtomicLongFieldUpdater(tclass, fieldName); diff --git a/common/src/main/java/io/netty/util/internal/PlatformDependent0.java b/common/src/main/java/io/netty/util/internal/PlatformDependent0.java index 96ffefc41d..8c60333f49 100644 --- a/common/src/main/java/io/netty/util/internal/PlatformDependent0.java +++ b/common/src/main/java/io/netty/util/internal/PlatformDependent0.java @@ -269,17 +269,17 @@ final class PlatformDependent0 { } static AtomicReferenceFieldUpdater newAtomicReferenceFieldUpdater( - Class tclass, String fieldName) throws Exception { + Class tclass, String fieldName) throws Exception { return new UnsafeAtomicReferenceFieldUpdater(UNSAFE, tclass, fieldName); } static AtomicIntegerFieldUpdater newAtomicIntegerFieldUpdater( - Class tclass, String fieldName) throws Exception { + Class tclass, String fieldName) throws Exception { return new UnsafeAtomicIntegerFieldUpdater(UNSAFE, tclass, fieldName); } static AtomicLongFieldUpdater newAtomicLongFieldUpdater( - Class tclass, String fieldName) throws Exception { + Class tclass, String fieldName) throws Exception { return new UnsafeAtomicLongFieldUpdater(UNSAFE, tclass, fieldName); } diff --git a/common/src/main/java/io/netty/util/internal/UnsafeAtomicIntegerFieldUpdater.java b/common/src/main/java/io/netty/util/internal/UnsafeAtomicIntegerFieldUpdater.java index bd18424351..a9a2bd2a60 100644 --- a/common/src/main/java/io/netty/util/internal/UnsafeAtomicIntegerFieldUpdater.java +++ b/common/src/main/java/io/netty/util/internal/UnsafeAtomicIntegerFieldUpdater.java @@ -25,7 +25,8 @@ final class UnsafeAtomicIntegerFieldUpdater extends AtomicIntegerFieldUpdater private final long offset; private final Unsafe unsafe; - UnsafeAtomicIntegerFieldUpdater(Unsafe unsafe, Class tClass, String fieldName) throws NoSuchFieldException { + UnsafeAtomicIntegerFieldUpdater(Unsafe unsafe, Class tClass, String fieldName) + throws NoSuchFieldException { Field field = tClass.getDeclaredField(fieldName); if (!Modifier.isVolatile(field.getModifiers())) { throw new IllegalArgumentException("Must be volatile"); diff --git a/common/src/main/java/io/netty/util/internal/UnsafeAtomicLongFieldUpdater.java b/common/src/main/java/io/netty/util/internal/UnsafeAtomicLongFieldUpdater.java index 229fa8cddc..da630fd95c 100644 --- a/common/src/main/java/io/netty/util/internal/UnsafeAtomicLongFieldUpdater.java +++ b/common/src/main/java/io/netty/util/internal/UnsafeAtomicLongFieldUpdater.java @@ -25,7 +25,8 @@ final class UnsafeAtomicLongFieldUpdater extends AtomicLongFieldUpdater { private final long offset; private final Unsafe unsafe; - UnsafeAtomicLongFieldUpdater(Unsafe unsafe, Class tClass, String fieldName) throws NoSuchFieldException { + UnsafeAtomicLongFieldUpdater(Unsafe unsafe, Class tClass, String fieldName) + throws NoSuchFieldException { Field field = tClass.getDeclaredField(fieldName); if (!Modifier.isVolatile(field.getModifiers())) { throw new IllegalArgumentException("Must be volatile"); diff --git a/common/src/main/java/io/netty/util/internal/UnsafeAtomicReferenceFieldUpdater.java b/common/src/main/java/io/netty/util/internal/UnsafeAtomicReferenceFieldUpdater.java index f0c647e95b..d839f669e7 100644 --- a/common/src/main/java/io/netty/util/internal/UnsafeAtomicReferenceFieldUpdater.java +++ b/common/src/main/java/io/netty/util/internal/UnsafeAtomicReferenceFieldUpdater.java @@ -25,7 +25,8 @@ final class UnsafeAtomicReferenceFieldUpdater extends AtomicReferenceField private final long offset; private final Unsafe unsafe; - UnsafeAtomicReferenceFieldUpdater(Unsafe unsafe, Class tClass, String fieldName) throws NoSuchFieldException { + UnsafeAtomicReferenceFieldUpdater(Unsafe unsafe, Class tClass, String fieldName) + throws NoSuchFieldException { Field field = tClass.getDeclaredField(fieldName); if (!Modifier.isVolatile(field.getModifiers())) { throw new IllegalArgumentException("Must be volatile");