Skip to content

Commit f0356b8

Browse files
committed
cleaning up
1 parent 1a32824 commit f0356b8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/org/rascalmpl/library/lang/json/internal/JsonValueReader.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,17 @@
7878
public 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

Comments
 (0)