Skip to content

Commit

Permalink
Explicit type declaration for postTyperTraverser
Browse files Browse the repository at this point in the history
  • Loading branch information
mccartney committed Sep 9, 2023
1 parent ea01261 commit 120e27d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ class FinalModifierOnCaseClass
explanation = "Using case classes without final modifier can lead to surprising breakage."
) {

override def inspector(context: InspectionContext): Inspector =
new Inspector(context) {
override def inspector(ctx: InspectionContext): Inspector =
new Inspector(ctx) {

import context.global._

override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

override def inspect(tree: Tree): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RedundantFinalModifierOnMethod
import context.global._
import definitions._

override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

override def inspect(tree: Tree): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RedundantFinalModifierOnVar

import context.global._

override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

override def inspect(tree: Tree): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class VarUse

def inspector(ctx: InspectionContext): Inspector =
new Inspector(ctx) {
override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

import context.global._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FindAndNotEqualsNoneReplaceWithExists

def inspector(ctx: InspectionContext): Inspector =
new Inspector(ctx) {
override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

import context.global._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PreferMapEmpty

def inspector(ctx: InspectionContext): Inspector =
new Inspector(ctx) {
override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

import context.global._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RepeatedIfElseBody

def inspector(ctx: InspectionContext): Inspector =
new Inspector(ctx) {
override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

import context.global._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LooksLikeInterpolatedString

def inspector(ctx: InspectionContext): Inspector =
new Inspector(ctx) {
override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

import context.global._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AsInstanceOf

def inspector(ctx: InspectionContext): Inspector =
new Inspector(ctx) {
override def postTyperTraverser =
override def postTyperTraverser: context.Traverser =
new context.Traverser {

import context.global._
Expand Down

0 comments on commit 120e27d

Please sign in to comment.