NShiftKey-Rule-Guide logo NShiftKey-Rule-Guide

1. Vulnerability Description

2. Vulnerability Countermeasure

Make sure that the comparison target is correct.

3. Sample Code

trait Machine
case class Terminator(name:String) extends Machine
class Test {
    def b : Any = 4
    b match {
    case Terminator =>
    case _ =>
    }
}