Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -54,16 +54,10 @@ public Object lastStringWrite(Object value) {
}

try {
Object foo = callerFrame.getObject(slot);

if (foo instanceof ThreadLocalObject) {
ThreadLocalObject threadLocalObject = (ThreadLocalObject) foo;

if (threadLocalObject == null) {
threadLocalObject = new ThreadLocalObject(getContext());
callerFrame.setObject(slot, threadLocalObject);
}
Object currentValue = callerFrame.getObject(slot);

if (currentValue instanceof ThreadLocalObject) {
ThreadLocalObject threadLocalObject = (ThreadLocalObject) currentValue;
threadLocalObject.set(value);
} else {
callerFrame.setObject(slot, value);

0 comments on commit 64fc007

Please sign in to comment.