Skip to content

Commit 1a28fe1

Browse files
committed
renamed thread local static field
1 parent 6dff407 commit 1a28fe1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private static final class Context {
157157
private final StringBuilder stringBuilder = new StringBuilder(1024);
158158
}
159159

160-
private static final ThreadLocal<Context> stringContexts = ThreadLocal.withInitial(Context::new);
160+
private static final ThreadLocal<Context> STRING_CONTEXTS = ThreadLocal.withInitial(Context::new);
161161

162162
/**
163163
* Do not call this method concurrently while modifying the contents of the message.
@@ -170,7 +170,7 @@ private static final class Context {
170170
*/
171171
@Override
172172
public String toString() {
173-
Context context = stringContexts.get();
173+
Context context = STRING_CONTEXTS.get();
174174
if (CharsetSupport.isStringEquivalent()) { // length & checksum can easily be calculated after message is built
175175
header.setField(context.bodyLength);
176176
trailer.setField(context.checkSum);
@@ -1021,6 +1021,6 @@ void setGarbled(boolean isGarbled) {
10211021
}
10221022

10231023
StringBuilder getStringBuilder() {
1024-
return stringContexts.get().stringBuilder;
1024+
return STRING_CONTEXTS.get().stringBuilder;
10251025
}
10261026
}

0 commit comments

Comments
 (0)