Skip to content

Commit

Permalink
Update lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectDa…
Browse files Browse the repository at this point in the history
…ta.java

Co-Authored-By: Fokko Driesprong <fokko@driesprong.frl>
  • Loading branch information
contextshuffling and Fokko committed Oct 10, 2019
1 parent 4ee0fa3 commit 1fa844f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ private static Field[] getFields(Class<?> recordClass, boolean excludeJava) {
if (excludeJava && c.getPackage() != null && c.getPackage().getName().startsWith("java."))
break; // skip java built-in classes
Field[] declaredFields = c.getDeclaredFields();
Arrays.sort(declaredFields, new Comparator<Field>() {
Arrays.sort(declaredFields, Comparator.comparing(Field::getName));
@Override
public int compare(Field o1, Field o2) {
return o1.getName().compareTo(o2.getName());
Expand Down

0 comments on commit 1fa844f

Please sign in to comment.