Ran
|
Files
42
|
Run time
6s
|
Badge
Embed ▾
README BADGES
|
push
github-actions
Replace deprecated EP API buildDescriptionFromChecker with BugChecker#buildDescription (#447) This PR replaces calls to the deprecated static `BugChecker.buildDescriptionFromChecker` method with calls to `BugChecker#buildDescription`, which was made public in google/error-prone@3ffb9ba42 and available in 2.4.0 and up. This is necessary to use NullAway with Error Prone 2.5.0 and up, as google/error-prone@704e8a159 removed `BugChecker.buildDescriptionFromChecker` in favour of `BugChecker#buildDescription`. Attempting to use NullAway 0.8.0 with Error Prone 2.5.1 results in errors such as the following (preceeding stack trace from [`gradle-errorprone-plugin`](https://github.com/tbroyer/gradle-errorprone-plugin/) omitted for brevity): ``` Caused by: java.lang.NoSuchMethodError: 'com.google.errorprone.matchers.Description$Builder com.google.errorprone.BugCheckerInfo.buildDescriptionFromChecker(com.sun.source.tree.Tree, com.google.errorprone.bugpatterns.BugChecker)' at com.uber.nullaway.handlers.ContractHandler.reportMatch(ContractHandler.java:231) at com.uber.nullaway.handlers.ContractHandler.onDataflowVisitMethodInvocation(ContractHandler.java:130) at com.uber.nullaway.handlers.CompositeHandler.onDataflowVisitMethodInvocation(CompositeHandler.java:191) at com.uber.nullaway.dataflow.AccessPathNullnessPropagation.visitMethodInvocation(AccessPathNullnessPropagation.java:867) at com.uber.nullaway.dataflow.AccessPathNullnessPropagation.visitMethodInvocation(AccessPathNullnessPropagation.java:138) at shadow.checkerframework.dataflow.cfg.node.MethodInvocationNode.accept(MethodInvocationNode.java:76) at shadow.checkerframework.dataflow.analysis.Analysis.callTransferFunction(Analysis.java:408) at shadow.checkerframework.dataflow.analysis.Analysis.performAnalysisBlock(Analysis.java:234) at shadow.checkerframework.data... (continued)
3457 of 3878 relevant lines covered (89.14%)
0.89 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|