Marcin Wisniowski
03/28/2018, 3:28 PMif ((previous == null) or (previous.type == type)) {
IntelliJ complains about the dot here, why is previous not smart-cast to not null if it's checked first?diesieben07
03/28/2018, 3:29 PMprevious comes from.Marcin Wisniowski
03/28/2018, 3:29 PMdiesieben07
03/28/2018, 3:31 PMor. You need to use ||.diesieben07
03/28/2018, 3:31 PMor does not short-circuit.Marcin Wisniowski
03/28/2018, 3:34 PMMarcin Wisniowski
03/28/2018, 3:34 PM