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:
parent
ecc2e04ddb
commit
b518824679
2 changed files with 10 additions and 13 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue