yoavst
10/02/2016, 9:48 AMmax
10/02/2016, 2:15 PMnull
so result of an expression is nullable. I think it's pretty straightforward.max
10/02/2016, 2:22 PM?.
kirillrakhman
10/02/2016, 4:21 PMval foo = try { bar() } catch (e: Exception) { baz() }
yoavst
10/02/2016, 4:49 PMDmitry Kandalov
10/02/2016, 5:35 PMDmitry Kandalov
10/02/2016, 5:37 PMval (x, value) = someFunction()
where I don’t care about x
.jw
10/02/2016, 5:45 PMignored
jw
10/02/2016, 5:45 PM_
would be a good indicator of an unused valuejw
10/02/2016, 5:45 PMeddie
10/02/2016, 5:53 PMjw
10/02/2016, 5:55 PMjw
10/02/2016, 5:55 PMit
eddie
10/02/2016, 5:55 PMeddie
10/02/2016, 5:56 PM_
of type Any?
or somethingjw
10/02/2016, 5:56 PMeddie
10/02/2016, 5:56 PMDmitry Kandalov
10/02/2016, 6:04 PMDmitry Kandalov
10/02/2016, 6:05 PM@Suppress
can’t be applied to destructing declaration:
@Suppress("UNUSED_VARIABLE”) // <— doesn’t compile
val (ignored, value) = someFunction()
eddie
10/02/2016, 6:10 PMDmitry Kandalov
10/02/2016, 6:12 PMdmcg
10/02/2016, 8:15 PMsemoro
10/02/2016, 10:37 PMsemoro
10/02/2016, 10:38 PMsemoro
10/02/2016, 10:39 PMsemoro
10/02/2016, 10:40 PMDmitry Kandalov
10/02/2016, 11:40 PMkingsley
10/03/2016, 2:51 AMszlynas
10/03/2016, 8:22 AM@Configuration
@EnableWebMvc
@ComponentScan("com.lynas")
public class WebConfig extends WebMvcConfigurerAdapter {
@Autowired
InterceptorConfig interceptor;
}
here i get the interceptor properly
the same when i do it in kotlin
@Configuration
@EnableWebMvc
@ComponentScan("com.lynas")
open class WebConfig() : WebMvcConfigurerAdapter() {
@Autowired
lateinit var interceptor: InterceptorConfig
}
i am getting null when accessing interceptor
can anybody tell me why and how to fix thisdh44t
10/03/2016, 8:36 AM