* Rename AdapterMethodsFactory from java to kt
* Convert AdapterMethodsFactory.java to AdapterMethodsFactory.kt
* Make kotlin more idiomatic
* Use forEach loop
* Spotless
* More idiomatic kotlin
* Inline toString
* Address comments from PR
* Address comments in PR review
* Spotless
* Use templated string for error message
* Add japicmp exclusion for internal AdapterMethodsFacotry#get method
* Convert if to when
* Convert if to when
* Use templated strings
* Replace forEach with for loop
* Simplify expression
* Add local val to avoid cast
* Update moshi/src/main/java/com/squareup/moshi/AdapterMethodsFactory.kt
Co-authored-by: Zac Sweers <pandanomic@gmail.com>
* Better variable names
* Exclude entire AdapterMethodsFactory class in japicmp
* Update moshi/src/main/java/com/squareup/moshi/AdapterMethodsFactory.kt
Co-authored-by: Zac Sweers <pandanomic@gmail.com>
* Update moshi/src/main/java/com/squareup/moshi/AdapterMethodsFactory.kt
Co-authored-by: Zac Sweers <pandanomic@gmail.com>
* Update moshi/src/main/java/com/squareup/moshi/AdapterMethodsFactory.kt
Co-authored-by: Zac Sweers <pandanomic@gmail.com>
* Update moshi/src/main/java/com/squareup/moshi/AdapterMethodsFactory.kt
Co-authored-by: Zac Sweers <pandanomic@gmail.com>
* Import knownNotNull
* Add requireNull in Util to create error message
* Rename argument
* Convert error message to raw string
* Use generateSequence to iterate through the superclasses
* Use it rather than complicated name
* Rename requireNull to checkNull, and remove contract
* Fix tests since error type changed
* Update moshi/src/main/java/com/squareup/moshi/internal/Util.kt
Co-authored-by: Spencer Griffin <sgriffin@ancestry.com>
Co-authored-by: Zac Sweers <pandanomic@gmail.com>
* Rename .java to .kt
* Convert MapJsonAdapter to Kotlin
* Pull up factory into companion object
* Spotless
* apicmp
* Use knownNotNull
* Use a template
* Rename .java to .kt
* Convert StandardJsonAdapters to Kotlin
* Inline factory to object
* Idiomatic cleanups + japicmp
* Fixes
* Another idiomatatic bit
* Use knownNotNull() where applicable
* Rename .java to .kt
* Convert JsonAdapter to Kotlin
Note that there's more to be done here I think, namely exploring removing the NonNull adapter and making the nullSafe() adapter public so that nullability is directly in the API. Saving that for another day though
* Update a couple usages
* Fix override
* Add exclusion for open
* Add `@Language` annotation for json strings
Allows the IDE to automatically make this pretty
* Spotless
* Nullable
Co-authored-by: Egor Andreevich <egor@squareup.com>
* When
Co-authored-by: Parth Padgaonkar <1294660+JvmName@users.noreply.github.com>
* Another when
* Spotless
Co-authored-by: Egor Andreevich <egor@squareup.com>
Co-authored-by: Parth Padgaonkar <1294660+JvmName@users.noreply.github.com>