Skip to content

Commit f055d2d

Browse files
committed
make sure the revision field is serialized first
this might be helpful for partial deserialization
1 parent 33ff895 commit f055d2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/AnnotationData.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*/
2323
package org.opengrok.indexer.history;
2424

25+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2526
import org.jetbrains.annotations.TestOnly;
2627

2728
import java.io.File;
@@ -36,6 +37,7 @@
3637
/**
3738
* Holds serializable content for {@link Annotation}.
3839
*/
40+
@JsonPropertyOrder({"revision", "filename"})
3941
public class AnnotationData implements Serializable {
4042

4143
private static final long serialVersionUID = -1;

0 commit comments

Comments
 (0)