Skip to content

Commit

Permalink
Fix guava-assertions.astub
Browse files Browse the repository at this point in the history
  • Loading branch information
smillst committed Dec 13, 2023
1 parent 7906a83 commit 3eb26a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions checker/src/main/resources/guava-assertions.astub
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,10 @@ public final class Verify {
@AssertMethod(VerifyException.class)
@Pure
public static void verify(boolean expression, String errorMessageTemplate, long p1);
}

@AssertMethod(VerifyException.class)
@Pure
public static void verify(
boolean expression, String errorMessageTemplate,Object p1);
public static void verify(boolean expression, String errorMessageTemplate, Object p1);

@AssertMethod(VerifyException.class)
@Pure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ private void parseAnnotationFiles(List<String> annotationFiles, AnnotationFileTy
// If the file has a prefix of "checker.jar/" then look for the file in the top
// level directory of the jar that contains the checker.
if (path.startsWith("checker.jar/")) {
path = path.substring("checker.jar/".length());
path = "/" + path.substring("checker.jar/".length());
}
try (InputStream in = checker.getClass().getResourceAsStream(path)) {
if (in != null) {
Expand Down

0 comments on commit 3eb26a9

Please sign in to comment.