Skip to content

Commit

Permalink
Use inferred type for createUastHandler override
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevins committed Aug 23, 2023
1 parent dfaedd1 commit bb6d98b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MissingNullAnnotationDetector : Detector(), SourceCodeScanner {
UMethod::class.java,
)

override fun createUastHandler(context: JavaContext): UElementHandler? = with(context) {
override fun createUastHandler(context: JavaContext) = with(context) {
if (!isJava(uastFile?.sourcePsi)) {
return UElementHandler.NONE
}
Expand Down

0 comments on commit bb6d98b

Please sign in to comment.