removed dupe companion object. (#4207)

This commit is contained in:
Roger Willis 2018-11-09 15:34:10 +00:00 committed by josecoll
parent 336185de23
commit 2893271ab4

View File

@ -80,10 +80,6 @@ open class TransactionBuilder @JvmOverloads constructor(
return t
}
companion object {
val logger = contextLogger()
}
// DOCSTART 1
/** A more convenient way to add items to this transaction that calls the add* methods for you based on type */
fun withItems(vararg items: Any): TransactionBuilder {
@ -265,7 +261,7 @@ open class TransactionBuilder @JvmOverloads constructor(
addReferenceState(resolvedStateAndRef.referenced())
}
} else {
logger.warn("WARNING: You must pass in a ServiceHub reference to TransactionBuilder to resolve " +
log.warn("WARNING: You must pass in a ServiceHub reference to TransactionBuilder to resolve " +
"state pointers outside of flows. If you are writing a unit test then pass in a " +
"MockServices instance.")
return