Skip to content

Commit

Permalink
Use ImmutableSortedSets according to JSpecify release
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-shettyy committed Apr 3, 2024
1 parent 26dc4b8 commit 801e5a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSortedSet;

import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
Expand Down Expand Up @@ -76,7 +78,7 @@ public void conformanceTests() throws IOException {
* @param deps the dependencies of the conformance tests.
*/
private static ImmutableSet<ReportedFact> analyze(
Path testDir, ImmutableList<Path> files, ImmutableList<Path> deps) {
Path testDir, ImmutableSortedSet<Path> files, ImmutableList<Path> deps) {
ImmutableSet<File> fileInputs = files.stream().map(Path::toFile).collect(toImmutableSet());

ImmutableList<String> depsAsStrings =
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/jspecify-conformance-test-report.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 14 pass; 100 fail; 114 total; 12.3% score
# 14 pass; 100 fail; 114 total; 12,3% score
FAIL: Basic.java:28:test:expression-type:Object?:nullable
FAIL: Basic.java:28:test:sink-type:Object!:return
FAIL: Basic.java:28:test:cannot-convert:Object? to Object!
Expand Down

0 comments on commit 801e5a4

Please sign in to comment.