Shawn
07/18/2018, 9:11 PMShawn
07/18/2018, 9:11 PMJoey Heck
07/18/2018, 9:11 PMprivate var myFunction = { foo: bar? ->
if (foo== null) {
doSomething()
return
} else {
...
Shawn
07/18/2018, 9:11 PMShawn
07/18/2018, 9:11 PMJoey Heck
07/18/2018, 9:11 PMJoey Heck
07/18/2018, 9:12 PMShawn
07/18/2018, 9:12 PMprivate var myFunction = label@ { foo: String? ->
if (foo == null) {
return@label
} else {
}
}
Shawn
07/18/2018, 9:13 PMJoey Heck
07/18/2018, 9:13 PMElliott
07/19/2018, 1:37 AMfield:
prefix when annotating a field? I understand the purpose of the prefix in terms of positioning the annotation correctly in the generated bytecode, but I was hoping there might be another way that didn't litter up the syntax, since the value of the annotated fields is defined via a DSL and I'd like to keep things as tidy as possible.
@field:Convo
val someConvo = ...
val fields = Reflections("my.package",
FieldAnnotationsScanner()).getFieldsAnnotatedWith(Convo::class.java)
I'd love to hear your input / suggestions. Maybe there's a better way I could go about this?jw
07/19/2018, 1:47 AMElliott
07/19/2018, 2:25 AM@Target(AnnotationTarget.FIELD)
annotation class Convo
to rid yourself of the need to specify the use-site target each time. e.g. @field:Annotation
versus just @Annotation
. 👍pdegand
07/19/2018, 3:49 PMMap<K, V?>.filterValuesNotNull(): Map<K, V>
could be a good addition to stdlib but maybe someone already made a library that could prevent me to copy/paste in all my projectsdiesieben07
07/19/2018, 3:55 PMmap.filterValuesNotNull
is in any way better than map.values().filterNotNull
.arekolek
07/19/2018, 3:55 PMdiesieben07
07/19/2018, 3:55 PMdodalovic
07/19/2018, 5:22 PMuser
07/19/2018, 5:24 PMdodalovic
07/19/2018, 5:24 PMdodalovic
07/19/2018, 5:24 PMdodalovic
07/19/2018, 5:25 PMCan Orhan
07/19/2018, 5:30 PMRedisTemplate
extends RedisAccessor
which has a field connectionFactory
- Think the plugin is getting confused even thought it's set to privatedodalovic
07/19/2018, 5:30 PMCan Orhan
07/19/2018, 5:31 PMdodalovic
07/19/2018, 5:32 PMHexa
07/19/2018, 10:23 PMredrield
07/19/2018, 11:07 PMredrield
07/19/2018, 11:07 PMyaakov
07/20/2018, 1:12 AM