1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Lists instead of ArrayLists.

This commit is contained in:
Cedric Beust 2016-01-03 07:57:08 -08:00
parent ecc2e04ddb
commit b518824679
2 changed files with 10 additions and 13 deletions

View file

@ -4,7 +4,6 @@ import com.beust.kobalt.misc.log
import java.io.File
import java.nio.file.*
import java.nio.file.attribute.BasicFileAttributes
import java.util.*
/**
* Subclasses of IFileSpec can be turned into a list of files. There are two kings: FileSpec (a single file)
@ -19,7 +18,7 @@ sealed class IFileSpec {
override public fun toString() = spec
}
class GlobSpec(val spec: ArrayList<String>) : IFileSpec() {
class GlobSpec(val spec: List<String>) : IFileSpec() {
constructor(spec: String) : this(arrayListOf(spec))