Skip to content

0.3.0-beta2

Pre-release
Pre-release
Compare
Choose a tag to compare
@ansman ansman released this 18 Dec 14:41

General changes (since beta1):

  • Strings are now treated as a primitive and an adapter is not used unless
    specifically requested. (#32)
  • Fixed a bug that caused adapters to not be requested for primitives when
    qualifiers were used. (#32)
  • Fix a bug where the generated code would not compile due to name conflicts. (#21)
  • Fix a bug that would generate uncompilable code when using a generic type with
    default values. (#12)
  • The generated code is now prettier and faster.

Code changes (since beta1):

  • Read object opening before initializing locals. (#15)
  • When writing null, perform an an early return. (#16)
  • Eliminate superfluous null check on allowed-nullable values. (#17)
  • Remove explicit null check for boxed primitives in writer. (#18)
  • Wrap the JSON name strings onto one per-line. (#19)
  • Add IDE imls and Gradle's reports dir to ignores. (#29)
  • Generated factory should be package-private. (#24)
  • Do not pass Moshi instance to adapter when not needed. (#28)
  • Do a direct continue inside switch cases. (#27)
  • Remove redundant apply. (#34)
  • Add a test for qualified primitive always calling an adapter. (#35)
  • Fix missing @JsonDefaultValue on custom annotation (#31)
  • Fix inconsistent indentation (#33)
  • Fix a bug that caused uncompilable code to be generated (#12)
  • Use NameAllocator for adapter fields, locals (#21)
  • Treat strings as primitive values and skip adapters per default (#32)