All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wartremover.warts.GetGetOrElse.scala Maven / Gradle / Ivy

The newest version!
package org.wartremover
package warts

object GetGetOrElse
    extends ExprMatch({ case '{ ($x: collection.Map[t1, t2]).get($k).getOrElse($v) } =>
      "you can use Map#getOrElse(key, default) instead of get(key).getOrElse(default)"
    })




© 2015 - 2024 Weber Informatics LLC | Privacy Policy