Skip to content

Commit 27c1edf

Browse files
committed
Extracted Trailer fields array into constant
1 parent dcc7107 commit 27c1edf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quickfixj-core/src/main/java/quickfix/Message.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ public static class Trailer extends FieldMap {
373373
static final long serialVersionUID = -3193357271891865972L;
374374
private static final int[] TRAILER_FIELD_ORDER = { SignatureLength.FIELD, Signature.FIELD,
375375
CheckSum.FIELD };
376+
private static final int[] TRAILER_POST_FIELDS = { CheckSum.FIELD };
376377

377378
public Trailer() {
378379
super(TRAILER_FIELD_ORDER);
@@ -384,7 +385,7 @@ public Trailer(int[] fieldOrder) {
384385

385386
@Override
386387
protected void calculateString(StringBuilder buffer, int[] excludedFields, int[] postFields) {
387-
super.calculateString(buffer, null, new int[] { CheckSum.FIELD });
388+
super.calculateString(buffer, null, TRAILER_POST_FIELDS);
388389
}
389390
}
390391

0 commit comments

Comments
 (0)