octylFractal
02/06/2019, 6:50 AMInput
from kotlinx-io that is limited to a certain length? I would implement my own but the AbstractInput
constructor looks like it takes some weird parameters that would be hard to extract from the Input
interfaceVladimir Ivanov
02/06/2019, 9:46 AMVladimir Ivanov
02/06/2019, 9:46 AMDaniel
02/06/2019, 10:09 PMtoReplace
part out with this code snipped to replace it (the original type is not Int
). But that doesn't look very clean.
Also when you convert the list to a mutable list and remove the toReplace
part it does'nt look very elegant.
fun replaceInList(list: List<Int>, toReplace: List<Int>, replacement: List<Int>) = with(list) {
subList(0, indexOf(toReplace.first)) + replacement + subList(indexOf(toReplace.last) + 1, size)
}
user
02/07/2019, 8:48 AMadam-mcneilly
02/07/2019, 2:52 PMboolean isTransparent = config.isTransparentToolbar();
However, I get a lint warning that unboxing isTransparentToolbar() could cause an NPE. So I tried this: config.isTransparentToolbar() != null && config.isTransparentToolbar()
But I still have the lint warning. Am I missing something?cbruegg
02/07/2019, 2:54 PMisTransparentToolbar
is a mutable property, it could be null after the null-check has passedczuckie
02/07/2019, 2:55 PMcbruegg
02/07/2019, 2:55 PMconfig.isTransparentToolbar() == Boolean.TRUE
Shawn
04/11/2019, 6:37 PMdumptruckman
04/11/2019, 6:37 PMShawn
04/11/2019, 6:38 PMdumptruckman
04/11/2019, 6:38 PMdumptruckman
04/11/2019, 6:38 PMstreetsofboston
04/11/2019, 7:03 PMGeert
04/11/2019, 8:15 PMjw
04/11/2019, 8:17 PMGeert
04/11/2019, 10:00 PMbjonnh
04/12/2019, 3:24 AMbjonnh
04/12/2019, 3:26 AMbjonnh
04/12/2019, 3:27 AMbjonnh
04/12/2019, 3:27 AMbjonnh
04/12/2019, 3:28 AMjiangxingbing
04/12/2019, 3:50 AMuser
04/12/2019, 4:18 AMPaul Woitaschek
04/12/2019, 8:19 AMikej
04/12/2019, 9:34 AMkotlin.build.report.verbose=true
option in Kotlin 1.3.30 I was able to isolate the problem and create a test case. If this ever starts working, I will be able to cut my coffee consumption by a significant margin 🙂. I suspect this affects quite a few people. If you are one of those, please upvote https://youtrack.jetbrains.com/issue/KT-30980reik.schatz
04/12/2019, 12:08 PMreik.schatz
04/12/2019, 12:08 PMval totalRows: Long = resultSet.totalRows // actually primitive long (big query java sdk)
if (totalRows == 0) { // doesn't compile
if (totalRows < 1) { // compiles
if (totalRows == 0L) { // compiles
reik.schatz
04/12/2019, 12:09 PMError:(72, 41) Kotlin: Operator ‘==’ cannot be applied to ‘Long’ and ‘Int’