Skip to content

Commit

Permalink
style(java): adjust code style
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaommmmomo committed Oct 26, 2024
1 parent 8a2901f commit 526ae4c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import org.apache.fury.Fury;
import org.apache.fury.collection.Tuple2;
Expand Down Expand Up @@ -178,7 +177,8 @@ private void copyFields(T originObj, T newObj) {
}
}

public static void copyField(Fury fury, InternalFieldInfo[] fieldInfos, Object originObj, Object newObj) {
public static void copyField(
Fury fury, InternalFieldInfo[] fieldInfos, Object originObj, Object newObj) {
for (InternalFieldInfo fieldInfo : fieldInfos) {
FieldAccessor fieldAccessor = fieldInfo.fieldAccessor;
long fieldOffset = fieldAccessor.getFieldOffset();
Expand Down Expand Up @@ -278,7 +278,8 @@ private InternalFieldInfo[] buildFieldsInfo() {
}
} else {
for (Field field : ReflectionUtils.getFields(type, true)) {
if (!Modifier.isTransient(field.getModifiers()) && !Modifier.isStatic(field.getModifiers())) {
if (!Modifier.isTransient(field.getModifiers())
&& !Modifier.isStatic(field.getModifiers())) {
descriptors.add(new Descriptor(field, TypeRef.of(field.getGenericType()), null, null));
}
}
Expand Down

0 comments on commit 526ae4c

Please sign in to comment.