tipsy
03/03/2018, 8:12 PMby lazy
supposed to work when calling from java?orangy
getProperty
, it should work of coursetipsy
03/03/2018, 10:48 PMval cachedBytes = super.getInputStream().readBytes()
it was changed to
val cachedBytes: ByteArray by lazy { super.getInputStream().readBytes() }
and everything appeared to work, all tests in intellij passed, and it worked when calling it from kotlin in external projects
but something was different when calling it from java in external projects (the stream is consumed before it's cached?), and i can't figure out why 🤔orangy
tipsy
03/04/2018, 12:50 AM