Commit Graph

1349 Commits

Author SHA1 Message Date
renovate[bot]
bbaf1140ee Update dependency com.google.guava:guava to v32.1.3-jre 2023-10-10 22:27:53 +00:00
Jake Wharton
f0ade79b8a Merge pull request #1746 from square/renovate/gradle-8.x
Update dependency gradle to v8.4
2023-10-04 19:23:27 -04:00
renovate[bot]
8a8f892e27 Update dependency gradle to v8.4 2023-10-04 23:16:02 +00:00
Jake Wharton
3b1b0fe303 Merge pull request #1743 from square/renovate/com.squareup.okio-okio-3.x
Update dependency com.squareup.okio:okio to v3.6.0
2023-10-01 23:19:20 -04:00
renovate[bot]
5c235e5773 Update dependency com.squareup.okio:okio to v3.6.0 2023-10-02 03:12:35 +00:00
renovate[bot]
c9d64c45c3 Update actions/checkout digest to 8ade135 (#1740)
* Update actions/checkout digest to 8ade135

* Update build.yml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <github@jakewharton.com>
2023-10-01 10:41:07 +00:00
Jake Wharton
0c5f788172 Merge pull request #1742 from square/renovate/com.diffplug.spotless-6.x
Update plugin spotless to v6.22.0
2023-10-01 06:39:22 -04:00
Jake Wharton
cb8794a259 Merge pull request #1741 from square/renovate/org.ow2.asm-asm-9.x
Update dependency org.ow2.asm:asm to v9.6
2023-10-01 06:35:48 -04:00
renovate[bot]
b88fc8bc1f Update plugin spotless to v6.22.0 2023-10-01 09:13:56 +00:00
renovate[bot]
a08d34914b Update dependency org.ow2.asm:asm to v9.6 2023-10-01 08:50:31 +00:00
Jake Wharton
24cf12cce6 Merge pull request #1733 from square/renovate/actions-checkout-4.x
Update actions/checkout action to v4
2023-09-04 10:07:37 -04:00
renovate[bot]
00618c458f Update actions/checkout action to v4 2023-09-04 12:39:49 +00:00
Jake Wharton
e6f2aaedf4 Merge pull request #1732 from square/renovate/org.jetbrains.dokka-1.x
Update plugin dokka to v1.9.0
2023-08-31 18:56:57 -04:00
renovate[bot]
3b61975af1 Update plugin dokka to v1.9.0 2023-08-31 22:47:34 +00:00
Jake Wharton
2d76ef9588 Merge pull request #1731 from cpovirk/bangbang
Insert `!!` to make some types in generated code non-nullable.
2023-08-30 13:33:24 -04:00
Chris Povirk
c9c9f9d838 Insert !! to make some types in generated code non-nullable.
Hi, Square folks.

The background here is that we're working to put nullness annotations on
more "JDK classes," such as `java.lang.Class`, at least in Google's
build system. That means that calls to methods like
`clazz.getMethod(...)` and `clazz.getDeclaredConstructor` must pass
non-nullable `Class` instances. If they don't, we see errors:

```
error: type mismatch: inferred type is Class<Int>? but Class<*> was expected
          String::class.java, String::class.java, Int::class.javaPrimitiveType, String::class.java,
                                                  ^
```

```
error: type mismatch: inferred type is Class<Int>? but Class<*> was expected
          String::class.java, FooResponse::class.java, Int::class.javaPrimitiveType,
                                                       ^
```

```
error: type mismatch: inferred type is Class<CapturedType(*)>? but Class<*> was expected
          Util.DEFAULT_CONSTRUCTOR_MARKER).also { this.constructorRef = it }
          ^
```

Expressions like `Int::class.javaPrimitiveType` are always non-nullable,
so we can use `!!` (or `checkNotNull` or whatever you might prefer)
there without risk.

(Note that it would be possible to avoiding using `!!` for
`INT_TYPE_BLOCK`: We could do so by passing `Integer.TYPE`. The more
general case of `TypeName.asTypeBlock` could theoretically be handled
similarly but would likely require maintaining a mapping from Kotlin
type name to Java primitive wrapper class.)

As for `DEFAULT_CONSTRUCTOR_MARKER`, I haven't looked at the generated
code enough to prove that it's non-nullable here. But if I'm reading the
bytecode right, the property value is being passed to
`getDeclaredConstructor`, so I'd expect NPE there if it were null.

Let me know what you think. I could check with our internal Moshi owners
about maintaining this as a Google-local patch if that's better, but I'm
hoping that this is a fairly harmless change, and our research so far
suggests that we _probably_ won't be back soon to ask about other
changes for this nullness work.
2023-08-30 11:31:50 -04:00
Jake Wharton
3879185dfd Merge pull request #1730 from square/renovate/com.diffplug.spotless-6.x
Update plugin spotless to v6.21.0
2023-08-29 07:07:15 -04:00
renovate[bot]
0fd4a50621 Update plugin spotless to v6.21.0 2023-08-29 07:47:56 +00:00
Jake Wharton
ba1c22c771 Merge pull request #1726 from square/renovate/kotlin-monorepo
Update kotlin monorepo to v1.9.10
2023-08-23 09:21:20 -04:00
renovate[bot]
083f4f963f Update kotlin monorepo to v1.9.10 2023-08-23 11:23:40 +00:00
Jake Wharton
53bbbc6fc5 Merge pull request #1708 from square/renovate/com.diffplug.spotless-6.x
Update plugin spotless to v6.20.0
2023-08-22 12:54:34 -04:00
renovate[bot]
86241bd172 Update plugin spotless to v6.20.0 2023-08-22 16:47:16 +00:00
Jake Wharton
3e9836d600 Merge pull request #1722 from square/renovate/gradle-8.x
Update dependency gradle to v8.3
2023-08-17 08:53:47 -04:00
renovate[bot]
20170c3ad4 Update dependency gradle to v8.3 2023-08-17 12:05:48 +00:00
Jake Wharton
7da75e9456 Merge pull request #1718 from square/renovate/kotlin-monorepo
Update dependency org.jetbrains.kotlinx:kotlinx-metadata-jvm to v0.7.0
2023-08-03 14:08:14 -04:00
renovate[bot]
16d5a3c8c7 Update dependency org.jetbrains.kotlinx:kotlinx-metadata-jvm to v0.7.0 2023-08-03 17:33:28 +00:00
Zac Sweers
f6f80a40dd Update to Kotlin 1.9.0 (#1719) 2023-08-03 13:33:12 -04:00
Jake Wharton
7732295aa8 Merge pull request #1715 from square/renovate/com.squareup.okio
Update dependency com.squareup.okio:okio to v3.5.0
2023-08-02 13:51:13 -04:00
renovate[bot]
f1e5a038a2 Update dependency com.squareup.okio:okio to v3.5.0 2023-08-02 17:14:59 +00:00
renovate[bot]
1e9efb27cb Update dependency com.google.guava:guava to v32.1.2-jre (#1713)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-01 13:22:20 -04:00
Jake Wharton
3d7433b982 Merge pull request #1706 from square/renovate/gradle-8.x
Update dependency gradle to v8.2.1
2023-07-10 12:39:38 -04:00
renovate[bot]
b7c91b4784 Update dependency gradle to v8.2.1 2023-07-10 13:46:18 +00:00
Jake Wharton
77487b4d6e Merge pull request #1705 from square/renovate/dev.zacsweers.autoservice
Update dependency dev.zacsweers.autoservice:auto-service-ksp to v1.1.0
2023-07-09 18:07:36 -04:00
renovate[bot]
5a4dce58f4 Update dependency dev.zacsweers.autoservice:auto-service-ksp to v1.1.0 2023-07-09 21:48:20 +00:00
Jake Wharton
f207bbbbc2 Merge pull request #1704 from square/renovate/com.squareup.okio
Update dependency com.squareup.okio:okio to v3.4.0
2023-07-07 13:58:27 -04:00
renovate[bot]
f579aa0784 Update dependency com.squareup.okio:okio to v3.4.0 2023-07-07 17:39:24 +00:00
Jake Wharton
1cae8ab37e Merge pull request #1700 from square/renovate/com.vanniktech.maven.publish-0.x
Update plugin mavenPublish to v0.25.3
2023-07-01 23:03:13 -04:00
renovate[bot]
6845370a2b Update plugin mavenPublish to v0.25.3 2023-07-02 01:45:25 +00:00
Jake Wharton
9d18c94698 Merge pull request #1698 from square/renovate/guava-monorepo
Update dependency com.google.guava:guava to v32.1.1-jre
2023-06-30 16:29:14 -04:00
Jake Wharton
76e2c6df29 Merge pull request #1699 from square/renovate/gradle-8.x
Update dependency gradle to v8.2
2023-06-30 16:28:53 -04:00
renovate[bot]
5d26ddf2b4 Update dependency gradle to v8.2 2023-06-30 20:22:31 +00:00
renovate[bot]
035e8dfff5 Update dependency com.google.guava:guava to v32.1.1-jre 2023-06-30 20:20:46 +00:00
Jake Wharton
9bac39f329 Merge pull request #1697 from square/renovate/guava-monorepo
Update dependency com.google.guava:guava to v32.1.0-jre
2023-06-29 16:00:55 -04:00
renovate[bot]
cea118a77f Update dependency com.google.guava:guava to v32.1.0-jre 2023-06-29 19:55:02 +00:00
Jake Wharton
88d61bdfb6 Merge pull request #1696 from square/renovate/com.google.truth
Update dependency com.google.truth:truth to v1.1.5
2023-06-18 12:19:29 -04:00
renovate[bot]
a12b5f9413 Update dependency com.google.truth:truth to v1.1.5 2023-06-18 15:51:03 +00:00
Jake Wharton
7a5884b759 Merge pull request #1694 from square/renovate/com.google.auto
Update dependency com.google.auto:auto-common to v1.2.2
2023-06-14 08:46:43 -04:00
Jake Wharton
3c290c3c0b Merge pull request #1680 from square/renovate/autoservice
Update dependency com.google.auto.service:auto-service-annotations to v1.1.1
2023-06-14 08:46:30 -04:00
renovate[bot]
f39823cf72 Update dependency com.google.auto.service:auto-service-annotations to v1.1.1 2023-06-14 12:30:31 +00:00
renovate[bot]
39e9a147c1 Update dependency com.google.auto:auto-common to v1.2.2 2023-06-14 12:30:26 +00:00