Skip to content

Commit 050e0d6

Browse files
committed
SONARJAVA-7236 Parse the corpus file by file like the rule tests
1 parent 033c50d commit 050e0d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎benchmark/src/AstSemanticDump.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static void main(String[] args) throws Exception {
9191
inputFiles.add(input);
9292
names.put(input, relative);
9393
}
94-
JParserConfig config = JParserConfig.Mode.BATCH.create(JParserConfig.MAXIMUM_SUPPORTED_JAVA_VERSION, entries);
94+
JParserConfig config = JParserConfig.Mode.FILE_BY_FILE.create(JParserConfig.MAXIMUM_SUPPORTED_JAVA_VERSION, entries);
9595
Map<String, Tree> trees = new HashMap<>();
9696
Map<String, String> errors = new HashMap<>();
9797
config.parse(inputFiles, () -> false, new AnalysisProgress(inputFiles.size()), (input, result) -> {

0 commit comments

Comments
 (0)