Mike
Mike
Looks questionable. View has its own state, ViewModel has its own. VM should not rely on view state restore and vice versa. When both saving their states, initial binding direction...
Yep, you're right, i mean ```java Iterator itr = this.cache.keySet().iterator(); itr.next(); itr.remove(); ``` This would be less confusing and avoid double lookup.
Seems that ASM can't transform classes on Android because they have different format. `PegDownProcessor` has another constructor that accepts `Parser`, we should try creating parser ourselves without ASM. I've tried...
Data classes themselves introduce nothing special — they implement `hashCode`, `equals`, `toString` and `componentN` functions automatically. Read-only proeprties (vals) are just `private final` fields with getters. So, Kotlin `data class...
Why non null? What if the value is nullable? With Gson, I just pass values 'as is' to constructor. If non-nullable value is null, let it be fail-fast. https://github.com/Miha-x64/gson-constructor-type-adapter-factory
If there's no such value, what deserializer should do? Use defaults values? This will require kotlin-reflect then...
In your variant reading slices may not succeed. For example, enum decoder reads a Slice without any fallback. But enum constant may contain non-unicode characters, while, for instance, PHP's `json_encode`...
Very strange. Tests, failing on Travis, are working correctly on my computer. Except ones with Streaming Category which failing on `enableStreamingSupport` with Javassist errors.
I can't see any reason to bloat memory. When we can use 256 bytes instead of 1K, why don't do so?
``` public static void main(String[] args) throws Exception { JsonIterator ji = new JsonIterator(); ji.reset("[1, \"str\"]".getBytes()); IterImpl.nextToken(ji); System.out.println(IterImplNumber.readInt(ji)); IterImpl.nextToken(ji); System.out.println(IterImplString.readString(ji)); System.gc(); System.gc(); System.gc(); System.out.println(Runtime.getRuntime().freeMemory()); /* -Xmx4M, running from IDEA *...