7878public class JsonValueReader {
7979 private static final TypeFactory TF = TypeFactory .getInstance ();
8080 private final TypeStore store ;
81- private final IValueFactory vf ;
82- private ThreadLocal <SimpleDateFormat > format ;
81+ private final IValueFactory vf ;
8382 private final IRascalMonitor monitor ;
84- private ISourceLocation src ;
85- private boolean trackOrigins = false ;
86- private boolean stopTracking = false ;
83+ private final ISourceLocation src ;
8784 private VarHandle posHandler ;
8885 private VarHandle lineHandler ;
8986 private VarHandle lineStartHandler ;
87+
88+ /* options */
89+ private ThreadLocal <SimpleDateFormat > format ;
90+ private boolean trackOrigins = false ;
91+ private boolean stopTracking = false ;
9092 private boolean explicitConstructorNames ;
9193 private boolean explicitDataTypes ;
9294 private boolean lenient ;
@@ -101,7 +103,6 @@ private final class ExpectedTypeDispatcher implements ITypeVisitor<IValue, IOExc
101103 private int offset = 0 ;
102104 private int readCount = 0 ;
103105 private int lastPos = 0 ;
104- // private boolean stopTracking = false;
105106
106107 /**
107108 * In this mode we read directly from a given JsonReader, under which we can not
@@ -111,7 +112,6 @@ private final class ExpectedTypeDispatcher implements ITypeVisitor<IValue, IOExc
111112 private ExpectedTypeDispatcher (JsonReader in ) {
112113 this .in = in ;
113114 this .tracker = null ;
114-
115115 }
116116
117117 /**
@@ -981,7 +981,6 @@ public JsonValueReader(IValueFactory vf, TypeStore store, IRascalMonitor monitor
981981
982982 setCalendarFormat ("yyyy-MM-dd'T'HH:mm:ssZ" );
983983
984-
985984 try {
986985 var lookup = MethodHandles .lookup ();
987986 var privateLookup = MethodHandles .privateLookupIn (JsonReader .class , lookup );
0 commit comments