Skip to content

Commit f5db5ee

Browse files
committed
Do not require CSV read/write operations to be state level.
Constant level is sufficient and allows TLC to cache the results. Signed-off-by: Markus Alexander Kuppe <[email protected]>
1 parent 406867e commit f5db5ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/tlc2/overrides/CSV.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
public class CSV {
5151

52-
@TLAPlusOperator(identifier = "CSVWriteRecord", module = "CSV", minLevel = 1, warn = false)
52+
@TLAPlusOperator(identifier = "CSVWriteRecord", module = "CSV", warn = false)
5353
public static Value writeRecord(final Value parameter, final StringValue delim, final BoolValue headers,
5454
final StringValue absolutePath) throws IOException {
5555

@@ -80,7 +80,7 @@ public static Value writeRecord(final Value parameter, final StringValue delim,
8080
return BoolValue.ValTrue;
8181
}
8282

83-
@TLAPlusOperator(identifier = "CSVWrite", module = "CSV", minLevel = 1, warn = false)
83+
@TLAPlusOperator(identifier = "CSVWrite", module = "CSV", warn = false)
8484
public static Value write(final StringValue template, final Value parameter, final StringValue absolutePath)
8585
throws IOException {
8686
final TupleValue tv = (TupleValue) parameter.toTuple();
@@ -97,7 +97,7 @@ public static Value write(final StringValue template, final Value parameter, fin
9797
return BoolValue.ValTrue;
9898
}
9999

100-
@TLAPlusOperator(identifier = "CSVRead", module = "CSV", minLevel = 1, warn = false)
100+
@TLAPlusOperator(identifier = "CSVRead", module = "CSV", warn = false)
101101
public static Value read(final Value columns, final StringValue delim, final StringValue absolutePath)
102102
throws IOException {
103103

@@ -127,7 +127,7 @@ public static Value read(final Value columns, final StringValue delim, final Str
127127
return new TupleValue(records);
128128
}
129129

130-
@TLAPlusOperator(identifier = "CSVRecords", module = "CSV", minLevel = 1, warn = false)
130+
@TLAPlusOperator(identifier = "CSVRecords", module = "CSV", warn = false)
131131
public static Value records(final StringValue absolutePath)
132132
throws IOException {
133133
final Path path = Paths.get(absolutePath.val.toString());

0 commit comments

Comments
 (0)