File tree Expand file tree Collapse file tree
quickfixj-base/src/main/java/quickfix Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments