mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Enabled warnings as errors (#3514)
This commit is contained in:
@ -40,6 +40,7 @@ enum class PrintOrVisualise {
|
||||
Visualise
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
fun main(args: Array<String>) {
|
||||
require(args.isNotEmpty()) { "Usage: <binary> [Print|Visualise]" }
|
||||
val printOrVisualise = PrintOrVisualise.valueOf(args[0])
|
||||
@ -99,6 +100,7 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
// END 5
|
||||
Unit
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@file:Suppress("UNUSED_VARIABLE", "unused")
|
||||
@file:Suppress("UNUSED_VARIABLE", "unused", "DEPRECATION")
|
||||
|
||||
package net.corda.docs
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
@file:Suppress("DEPRECATION")
|
||||
|
||||
package net.corda.docs
|
||||
|
||||
import co.paralleluniverse.fibers.Suspendable
|
||||
|
@ -1,3 +1,5 @@
|
||||
@file:Suppress("UNUSED_VARIABLE")
|
||||
|
||||
package net.corda.docs.tutorial.tearoffs
|
||||
|
||||
import net.corda.core.contracts.Command
|
||||
@ -42,4 +44,4 @@ fun main(args: Array<String>) {
|
||||
} catch (e: FilteredTransactionVerificationException) {
|
||||
throw MerkleTreeException("Rate Fix Oracle: Couldn't verify partial Merkle tree.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user