Skip to content

Commit 2778eb7

Browse files
committed
Minor fix to ProtobufField.compareTo()
1 parent 19f2778 commit 2778eb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

protobuf/src/main/java/tools/jackson/dataformat/protobuf/schema/ProtobufField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,6 @@ public String toString() // for debugging
217217

218218
@Override
219219
public int compareTo(ProtobufField other) {
220-
return id - other.id;
220+
return Integer.compare(id, other.id);
221221
}
222222
}

0 commit comments

Comments
 (0)