Eugen Martynov
09/03/2019, 8:48 AMSeri
09/03/2019, 6:27 PMDavide Giuseppe Farella
09/04/2019, 1:27 PMbuildSrc
which I want to include in the lib itself with api(project(":buildSrc"))
, but when I include the lib in my project I got an error at sync time that says that :Library:buildSrc
cannot be resolved.
Any hint about that?dewildte
09/04/2019, 4:09 PMitnoles
09/09/2019, 12:37 AMPaul Woitaschek
09/09/2019, 3:44 PMghedeon
09/10/2019, 11:23 AMkartikpatodi
09/11/2019, 5:36 AMjanvladimirmostert
09/16/2019, 7:55 AMhttps://www.youtube.com/watch?v=gCWtkvDQ2ZI▾
Gunslingor
09/27/2019, 2:22 PMmartin
09/27/2019, 5:58 PM{
"count": 13
"data": { ... }
}
for example I want to parse only the data field there to a class, using jacksonObjectMapper().readValue<MyClassForData>()
Paul Woitaschek
09/28/2019, 11:20 AMrobstoll
10/01/2019, 9:41 AMval
property accesses (properties which do not use get
) within a function? Not that I am concerned that it has any impact on performance, I am just curious. When I use the bytecode viewer it does not look like it.Gunslingor
10/01/2019, 7:15 PMgroostav
10/08/2019, 8:09 AMhttps://www.youtube.com/watch?v=Og847HVwRSI▾
groostav
10/08/2019, 8:10 AMalso me and my company are still doing green-field fortran work 🤘
Dominaezzz
10/09/2019, 6:38 PMelect
10/11/2019, 11:33 AMEnumSet
which couldnt fit my needs?
Well, nowadays after started playing with Swift, I can better define one of the disadvantage of EnumSet
(at least for me): on jvm is a class, and it's passed by reference, deeper functions may modify the original content.
While on Swift is instead a value type and then there is no problem passing it down to functions.
Maybe it's possible to clone it, by this would introduce additional overhead in terms of verbosity and performances (I use flag intensively)ursus
10/13/2019, 6:16 AMbjonnh
10/14/2019, 8:45 PMzokipirlo
10/18/2019, 1:26 PMgroostav
10/18/2019, 8:31 PMpublic Returnables doStuff(){
Returnables returnables;
switch(x){
case Instance1: returnables = makeReturnables()
default: throw new IllegalStateException();
}
return returnables; //error: unreachable.
Of course, I forgot to add a break
statement, which is a nasty language feature onto itself.
still! I've always been annoyed with java for compilation errors on "Unreachable code", and have on more than one occasion written if(1==1)
just to get around it! I'm impressed it caught me here. Well done java.
now to ctrl
+ alt
+ k
...Thiyagu
10/18/2019, 10:58 PMmagisu
10/21/2019, 10:20 PMmarstran
10/23/2019, 7:03 PMsealed class State
class State1(val data: Int) : State()
class State2(val otherData: Int) : State()
object State3 : State()
sealed class Action
class Action1(val actionData: Int) : Action()
object Action2 : Action()
fun State.nextState(action: Action): State = TODO("Write this function")
elye
10/24/2019, 2:27 AM@MapKey(unwrapValue = false)
@interface MyKey {
String name();
Class<?> implementingClass();
int[] thresholds();
}
I can instantiate it
final class MyKeyImpl implements MyKey {
private final String name;
private final Class<?> implementingClass;
private final int[] thresholds;
MyKeyImpl(
String name,
Class<?> implementingClass,
int[] thresholds) {
this.name = name;
this.implementingClass = implementingClass;
this.thresholds = thresholds.clone();
}
@Override
public Class<? extends MyKey> annotationType() { return MyKey.class; }
@Override
public String name() { return name; }
@Override
public Class<?> implementingClass() { return implementingClass; }
@Override
public int[] thresholds() { return thresholds.clone();}
}
If I convert it to Kotlin
@MapKey(unwrapValue = false)
internal annotation class MyKey(val name: String, val implementingClass: KClass<*>, val thresholds: IntArray)
The below converted Kotlin code is not working.
internal class MyKeyImpl(
private val name: String,
private val implementingClass: Class<*>,
thresholds: IntArray) : MyKey {
private val thresholds: IntArray
init { this.thresholds = thresholds.clone() }
override fun annotationType(): Class<out MyKey> { return MyKey::class.java }
override fun name(): String { return name }
override fun implementingClass(): Class<*> { return implementingClass }
override fun thresholds(): IntArray { return thresholds.clone() }
}
Fudge
10/24/2019, 9:33 AMdewildte
10/25/2019, 3:11 PMVague
10/29/2019, 12:07 PMEllen Spertus
10/29/2019, 3:21 PMEllen Spertus
10/29/2019, 3:21 PMbodiam
10/29/2019, 9:59 PM