mirror of https://github.com/sbt/sbt.git
Remove redundant String#toString
This commit is contained in:
parent
4bee8747e9
commit
3b4b7effc2
|
|
@ -179,7 +179,7 @@ private[librarymanagement] abstract class SemComparatorFunctions {
|
|||
parse(
|
||||
numbers
|
||||
.collect { case Some(v) =>
|
||||
v.toString
|
||||
v
|
||||
}
|
||||
.mkString(".")
|
||||
)
|
||||
|
|
|
|||
|
|
@ -69,6 +69,6 @@ object IvyCredentials {
|
|||
private def read(from: File): Map[String, String] = {
|
||||
val properties = new java.util.Properties
|
||||
IO.load(properties, from)
|
||||
properties.asScala.map { (k, v) => (k.toString, v.toString.trim) }.toMap
|
||||
properties.asScala.map { (k, v) => (k, v.trim) }.toMap
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ object CoursierRepositoriesTasks {
|
|||
val result2 =
|
||||
paths.ivyHome match {
|
||||
case Some(ivyHome) =>
|
||||
val ivyHomeUri = ivyHome.toString
|
||||
val ivyHomeUri = ivyHome
|
||||
result1 map {
|
||||
case r: FileRepository =>
|
||||
val ivyPatterns = r.patterns.ivyPatterns map {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ sealed trait VirtualFileValueCache[A] {
|
|||
object VirtualFileValueCache {
|
||||
def definesClassCache(converter: FileConverter): VirtualFileValueCache[DefinesClass] = {
|
||||
apply(converter) { (x: VirtualFile) =>
|
||||
if (x.name.toString != "rt.jar") Locate.definesClass(x)
|
||||
if (x.name != "rt.jar") Locate.definesClass(x)
|
||||
else (_: String) => false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue