Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from google:master #121

Open
wants to merge 195 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
2151add
Null-mark Truth.
stefanhaustein Mar 14, 2023
1e0f80c
Rename `Record` test class (and sample classes in docs) to `MyRecord`.
cpovirk Mar 14, 2023
eebe9de
Detect Bazel JUnit 5 test runner stack frames
fmeum Mar 14, 2023
4eda6b8
Remove unnecessary `final` keywords.
cpovirk Mar 14, 2023
d107a99
Strip `@Nullable` annotations from the sources that we hand to GWT.
cpovirk Mar 15, 2023
fc88a8b
Bump maven-surefire-plugin from 2.22.2 to 3.0.0
dependabot[bot] Mar 16, 2023
b217551
Assorted cleanups, some to address automated warnings and suggestions…
cpovirk Mar 17, 2023
d176860
More assorted cleanups and suppressions.
cpovirk Mar 22, 2023
92fe462
More assorted cleanups and suppressions.
cpovirk Mar 22, 2023
f1f0a9a
Use `ExpectFailure` instead of `try`-`catch`-`fail`.
cpovirk Mar 23, 2023
9f8879f
Migrate the remaining `TableSubject` failure messages to the new form…
cpovirk Mar 23, 2023
89c8d8d
Make `ComparableSubject` stricter:
cpovirk Mar 23, 2023
38f7123
Rename our type parameter so that we define `assertThat(ComparableT a…
cpovirk Mar 24, 2023
ce44a4b
[Pin](https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinn…
cpovirk Mar 27, 2023
3745f24
More assorted cleanups and suppressions.
cpovirk Mar 27, 2023
2c5d928
Bump animal-sniffer-maven-plugin from 1.22 to 1.23
dependabot[bot] Mar 30, 2023
5a848ff
Bump checker-qual from 3.32.0 to 3.33.0
dependabot[bot] Apr 4, 2023
2faf9a5
Bump maven-enforcer-plugin from 3.2.1 to 3.3.0
dependabot[bot] Apr 5, 2023
2f679a1
Bump asm from 9.4 to 9.5
dependabot[bot] Apr 5, 2023
d69223f
Eliminate the `rawtypes` and `unchecked` warnings from a method.
cpovirk Apr 5, 2023
2161325
Internal Build Change
stefanhaustein Apr 6, 2023
1153134
Bump actions/checkout from 3.5.0 to 3.5.1
dependabot[bot] Apr 13, 2023
e40f384
Bump protobuf-java from 3.22.2 to 3.22.3
dependabot[bot] Apr 13, 2023
19dcd43
Bump actions/checkout from 3.5.1 to 3.5.2
dependabot[bot] Apr 14, 2023
e48b216
Bump maven-project-info-reports-plugin from 3.4.2 to 3.4.3
dependabot[bot] Apr 18, 2023
5389986
Internal change.
java-team-github-bot Apr 28, 2023
464126d
Bump checker-qual from 3.33.0 to 3.34.0
dependabot[bot] May 3, 2023
89c2534
Bump protobuf-java from 3.22.3 to 3.22.4
dependabot[bot] May 5, 2023
c2e6241
Bump maven-surefire-plugin from 3.0.0 to 3.1.0
dependabot[bot] May 8, 2023
f60d10e
Bump protobuf-java from 3.22.4 to 3.23.0
dependabot[bot] May 9, 2023
9e5a49b
Include `LICENSE` in the generated jar under `META-INF`.
cpovirk May 9, 2023
623b3c4
Bump error_prone_annotations from 2.18.0 to 2.19.1
dependabot[bot] May 11, 2023
135a05c
Bump build-helper-maven-plugin from 3.3.0 to 3.4.0
dependabot[bot] May 12, 2023
18c70af
Use `@Nullable` instead of `@CheckForNull`.
cpovirk May 16, 2023
c317a61
Bump protobuf-java from 3.23.0 to 3.23.1
dependabot[bot] May 18, 2023
7d4a851
Bump maven-source-plugin from 3.2.1 to 3.3.0
dependabot[bot] May 22, 2023
22911d6
Bump maven-project-info-reports-plugin from 3.4.3 to 3.4.4
dependabot[bot] May 30, 2023
99b1df8
Bump guava-gwt from 31.1-jre to 32.0.0-jre
dependabot[bot] May 30, 2023
f8d4dbb
Bump guava.android.version from 31.1-android to 32.0.0-android
dependabot[bot] May 30, 2023
7d0c796
Remove old release script.
cpovirk May 30, 2023
f3f5ab0
Bump maven-gpg-plugin from 3.0.1 to 3.1.0
dependabot[bot] Jun 1, 2023
80d1996
Bump protobuf-java from 3.23.1 to 3.23.2
dependabot[bot] Jun 1, 2023
012dc2f
Bump checker-qual from 3.34.0 to 3.35.0
dependabot[bot] Jun 2, 2023
3b73756
Bump maven-surefire-plugin from 3.1.0 to 3.1.2
dependabot[bot] Jun 7, 2023
7681276
Bump maven-project-info-reports-plugin from 3.4.4 to 3.4.5
dependabot[bot] Jun 7, 2023
70523e2
Bump guava.android.version from 32.0.0-android to 32.0.1-android
dependabot[bot] Jun 9, 2023
d75d0b6
Fix NPE when actual is null
java-team-github-bot Jun 14, 2023
bf913b0
Bump actions/checkout from 3.5.2 to 3.5.3
dependabot[bot] Jun 15, 2023
3e24685
Bump error_prone_annotations from 2.19.1 to 2.20.0
dependabot[bot] Jun 20, 2023
151367a
Bump guava-gwt from 32.0.0-jre to 32.0.1-jre
dependabot[bot] Jun 28, 2023
3f00bfe
Bump Guava to 32.1.1.
cpovirk Jun 30, 2023
1857121
Add missed nullability for IterableSubject array elements
stefanhaustein Jul 6, 2023
a8b507f
Bump a bunch of deps at once.
cpovirk Jul 24, 2023
438c7fa
Bump actions/setup-java from 3.11.0 to 3.12.0
dependabot[bot] Jul 25, 2023
d886333
Bump Guava to 32.1.2.
cpovirk Aug 1, 2023
22e2011
Bump org.checkerframework:checker-qual from 3.36.0 to 3.37.0
dependabot[bot] Aug 8, 2023
a187e44
Bump com.google.protobuf:protobuf-java from 3.23.4 to 3.24.0
dependabot[bot] Aug 9, 2023
5575a5d
Bump com.google.errorprone:error_prone_annotations from 2.20.0 to 2.21.1
dependabot[bot] Aug 14, 2023
e655ad6
Bump auto-value.version from 1.10.2 to 1.10.3
dependabot[bot] Aug 16, 2023
5a67dad
Bump com.google.protobuf:protobuf-java from 3.24.0 to 3.24.1
dependabot[bot] Aug 21, 2023
de1b664
Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.3.0 to 3.4.0
dependabot[bot] Aug 23, 2023
5ebc379
Bump actions/checkout from 3.5.3 to 3.6.0
dependabot[bot] Aug 25, 2023
49757f9
Bump com.google.protobuf:protobuf-java from 3.24.1 to 3.24.2
dependabot[bot] Aug 28, 2023
79229a4
Bump org.checkerframework:checker-qual from 3.37.0 to 3.38.0
dependabot[bot] Sep 4, 2023
38d49c4
Bump actions/checkout from 3.6.0 to 4.0.0
dependabot[bot] Sep 5, 2023
35a97eb
Bump com.google.protobuf:protobuf-java from 3.24.2 to 3.24.3
dependabot[bot] Sep 8, 2023
11450ff
Bump actions/cache from 3.3.1 to 3.3.2
dependabot[bot] Sep 8, 2023
c62f99e
Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.4.0 to 3.4.1
dependabot[bot] Sep 11, 2023
830ff3c
Bump auto-value.version from 1.10.3 to 1.10.4
dependabot[bot] Sep 11, 2023
08dcd73
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.6.0
dependabot[bot] Sep 18, 2023
848f2c6
Bump actions/setup-java from 3.12.0 to 3.13.0
dependabot[bot] Sep 21, 2023
f60d3f5
Bump com.google.errorprone:error_prone_annotations from 2.21.1 to 2.22.0
dependabot[bot] Sep 22, 2023
4242761
Internal Code Change
java-team-github-bot Sep 25, 2023
cf142d5
Bump actions/checkout from 4.0.0 to 4.1.0
dependabot[bot] Sep 25, 2023
4df7a8e
Bump org.ow2.asm:asm from 9.5 to 9.6
dependabot[bot] Oct 2, 2023
263e13e
Bump org.checkerframework:checker-qual from 3.38.0 to 3.39.0
dependabot[bot] Oct 3, 2023
c1a92ce
Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0
dependabot[bot] Oct 4, 2023
7d13f00
Bump com.google.protobuf:protobuf-java from 3.24.3 to 3.24.4
dependabot[bot] Oct 5, 2023
57321e9
Bump Guava to 32.1.3.
cpovirk Oct 10, 2023
2a0b0f6
Bump actions/checkout from 4.1.0 to 4.1.1
dependabot[bot] Oct 18, 2023
de69497
Bump com.google.errorprone:error_prone_annotations from 2.22.0 to 2.23.0
dependabot[bot] Oct 19, 2023
a12d848
Bump org.apache.maven.plugins:maven-surefire-plugin from 3.1.2 to 3.2.1
dependabot[bot] Oct 24, 2023
8bd3ef6
Support deep comparison of unpacked Any messages in FieldNumberTree.
java-team-github-bot Oct 27, 2023
a68162f
Include information about method parameters in class file.
cpovirk Oct 27, 2023
ed1ac26
Bump org.checkerframework:checker-qual from 3.39.0 to 3.40.0
dependabot[bot] Nov 2, 2023
c73fc2b
Bump com.google.protobuf:protobuf-java from 3.24.4 to 3.25.0
dependabot[bot] Nov 6, 2023
9e37a01
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.0 to 3.6.2
dependabot[bot] Nov 7, 2023
3841f13
Bump org.apache.maven.plugins:maven-surefire-plugin from 3.2.1 to 3.2.2
dependabot[bot] Nov 7, 2023
17ebbfe
Remove unnecessary nullness suppression.
cpovirk Nov 8, 2023
04358ef
Bump com.google.protobuf:protobuf-java from 3.25.0 to 3.25.1
dependabot[bot] Nov 16, 2023
008373c
Check compatibility against the Android SDK (including [always-desuga…
cpovirk Nov 21, 2023
c369627
Bump org.apache.maven.plugins:maven-project-info-reports-plugin from …
dependabot[bot] Nov 22, 2023
6376c39
Bump org.codehaus.mojo:build-helper-maven-plugin from 3.4.0 to 3.5.0
dependabot[bot] Nov 27, 2023
0e99a27
Add `isWithin().of()` support to `LongSubject`.
java-team-github-bot Nov 28, 2023
abc9402
Bump actions/setup-java from 3.13.0 to 4.0.0
dependabot[bot] Nov 30, 2023
04fddbb
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.2 to 3.6.3
dependabot[bot] Dec 4, 2023
d532e91
Bump org.checkerframework:checker-qual from 3.40.0 to 3.41.0
dependabot[bot] Dec 5, 2023
91f4bdc
Remove getSuperclass() from the j2kt API, as it's not supported and i…
stefanhaustein Dec 6, 2023
6464cb5
Add `isWithin().of()` support to `IntegerSubject`.
cpovirk Dec 11, 2023
3e125c7
Bump org.apache.maven.plugins:maven-surefire-plugin from 3.2.2 to 3.2.3
dependabot[bot] Dec 14, 2023
fde6632
Make our nullness checking work with an Android bootclasspath.
cpovirk Dec 15, 2023
5da5e3f
Bump org.checkerframework:checker-qual from 3.41.0 to 3.42.0
dependabot[bot] Dec 18, 2023
cb09b47
Bump org.apache.maven.plugins:maven-compiler-plugin from 3.11.0 to 3.…
dependabot[bot] Dec 19, 2023
61d7afb
Bump Guava to 33.0.0.
cpovirk Dec 19, 2023
e2cee41
Bump com.google.errorprone:error_prone_annotations from 2.23.0 to 2.24.0
dependabot[bot] Dec 22, 2023
dee0a55
Bump org.apache.maven.plugins:maven-compiler-plugin from 3.12.0 to 3.…
dependabot[bot] Dec 26, 2023
e63bac0
Bump com.google.errorprone:error_prone_annotations from 2.24.0 to 2.24.1
dependabot[bot] Jan 4, 2024
e47ee27
Bump org.apache.maven.plugins:maven-surefire-plugin from 3.2.3 to 3.2.5
dependabot[bot] Jan 10, 2024
eb0426e
Move `truth-java8-extension` classes into the main `truth` artifact.
cpovirk Jan 10, 2024
7dab78f
Bump com.google.protobuf:protobuf-java from 3.25.1 to 3.25.2
dependabot[bot] Jan 11, 2024
795a9cf
Bump actions/cache from 3.3.2 to 3.3.3
dependabot[bot] Jan 13, 2024
f8ecaec
Prepare `StreamSubject` for adding `Truth.assertThat(Stream)`.
cpovirk Jan 15, 2024
ca7e8f4
Make it possible to write `expect.that(optional).isPresent()`, `asser…
cpovirk Jan 15, 2024
37fd8be
Copy `Truth8.assertThat` overloads for `Optional` and `Stream` to the…
cpovirk Jan 15, 2024
16db780
Make "value of" lines work with `StreamSubject`.
cpovirk Jan 16, 2024
7be930d
Bump actions/cache from 3.3.3 to 4.0.0
dependabot[bot] Jan 17, 2024
78d27dd
Remove stale suppressions.
cpovirk Jan 18, 2024
93b4d93
Add `@since` tags for the first batch of Java-8-related APIs.
cpovirk Jan 19, 2024
87b371d
Bump styfle/cancel-workflow-action from 0.12.0 to 0.12.1
dependabot[bot] Jan 26, 2024
7c65fc6
Make it possible to write `expect.that(optionalInt).isPresent()`, `as…
cpovirk Jan 30, 2024
0999369
Automated Code Change
cpovirk Jan 31, 2024
b02a658
Migrate most usages of `Truth8.assertThat` to equivalent usages of `T…
cpovirk Jan 31, 2024
9be8e77
Copy remaining `Truth8.assertThat` overloads to the main `Truth` clas…
cpovirk Feb 1, 2024
1f81827
Copy `Truth8.assertThat` overloads for `Path` and `OptionalLong` to t…
cpovirk Feb 2, 2024
b5cd4a0
Remove workaround for ancient Android bug.
cpovirk Feb 6, 2024
45782bd
Remove temporary type parameters.
cpovirk Feb 6, 2024
1e9d4d8
Update docs to reflect that the Java 8 assertions have "moved" to the…
cpovirk Feb 6, 2024
a6d312e
Document more about how and why to migrate off `Truth8`.
cpovirk Feb 15, 2024
f1fd0cf
Bump com.google.protobuf:protobuf-java from 3.25.2 to 3.25.3
dependabot[bot] Feb 16, 2024
c243961
Remove `@J2ktIncompatible` from `StringSubject#matches`
martinkretzschmar Feb 19, 2024
bbd8d12
Bump com.google.errorprone:error_prone_annotations from 2.24.1 to 2.25.0
dependabot[bot] Feb 19, 2024
5efd53f
Change `assertThat(array)` to allow arrays of non-nullable elements
martinkretzschmar Feb 20, 2024
3efe353
Automated Code Change
kluever Feb 21, 2024
559d636
Suppress `NullableOptional`, as we already do in, e.g., `Truth.assert…
cpovirk Feb 21, 2024
a43223e
Suppress `TruthSelfEquals` violations in Truth.
kluever Feb 21, 2024
996a844
Remove more copies of a workaround for an ancient Android bug.
cpovirk Feb 22, 2024
ae78f4a
Bump actions/setup-java from 4.0.0 to 4.1.0
dependabot[bot] Feb 28, 2024
e3b4354
Enable a few more Guava Primitives tests for J2KT
martinkretzschmar Feb 29, 2024
213a156
Migrate tests off `Truth8`.
cpovirk Feb 29, 2024
2bc070a
Bump actions/cache from 4.0.0 to 4.0.1
dependabot[bot] Mar 7, 2024
1f0fdcc
Bump org.apache.maven.plugins:maven-gpg-plugin from 3.1.0 to 3.2.0
dependabot[bot] Mar 12, 2024
511d3b3
Bump com.google.errorprone:error_prone_annotations from 2.25.0 to 2.26.1
dependabot[bot] Mar 13, 2024
af5a2d0
Bump Guava to 33.1.0.
cpovirk Mar 13, 2024
a0dd585
Bump actions/checkout from 4.1.1 to 4.1.2
dependabot[bot] Mar 13, 2024
edbe9c1
Bump actions/setup-java from 4.1.0 to 4.2.0
dependabot[bot] Mar 14, 2024
09b9f9f
Bump actions/setup-java from 4.2.0 to 4.2.1
dependabot[bot] Mar 15, 2024
e6963aa
Migrate off a deprecated `TextFormat` API, and upgrade to a protobuf …
cpovirk Mar 15, 2024
6f1c246
Bump org.apache.maven.plugins:maven-compiler-plugin from 3.12.1 to 3.…
dependabot[bot] Mar 19, 2024
68c990e
Bump actions/cache from 4.0.1 to 4.0.2
dependabot[bot] Mar 20, 2024
db29011
Bump org.ow2.asm:asm from 9.6 to 9.7
dependabot[bot] Mar 25, 2024
2fd5555
Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.0 to 3.2.2
dependabot[bot] Mar 27, 2024
3f1e666
Bump com.google.protobuf:protobuf-java from 4.26.0 to 4.26.1
dependabot[bot] Mar 28, 2024
3c90468
Bump org.apache.maven.plugins:maven-source-plugin from 3.3.0 to 3.3.1
dependabot[bot] Apr 5, 2024
399821e
Remove stray references to `Truth8`.
cpovirk Apr 5, 2024
2317182
Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.2 to 3.2.3
dependabot[bot] Apr 11, 2024
85772be
Bump org.apache.maven.plugins:maven-jar-plugin from 3.3.0 to 3.4.0
dependabot[bot] Apr 15, 2024
b74edad
Remove a confusing comment.
eamonnmcmanus Apr 15, 2024
59e7a50
Deprecate `Subject.Factory` methods for Java 8 types.
cpovirk Apr 18, 2024
2b370c1
Bump actions/checkout from 4.1.2 to 4.1.3
dependabot[bot] Apr 22, 2024
19ac557
Bump org.apache.maven.plugins:maven-jar-plugin from 3.4.0 to 3.4.1
dependabot[bot] Apr 22, 2024
fd6a313
Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.3 to 3.2.4
dependabot[bot] Apr 24, 2024
acd1797
Suppress or work around false-positive errors from the forthcoming ve…
cpovirk Apr 24, 2024
1bceeb1
Bump actions/checkout from 4.1.3 to 4.1.4
dependabot[bot] Apr 25, 2024
10f4788
Bump com.google.errorprone:error_prone_annotations from 2.26.1 to 2.27.0
dependabot[bot] Apr 29, 2024
a4508d3
Bump org.checkerframework:checker-qual from 3.42.0 to 3.43.0
dependabot[bot] May 2, 2024
7048149
Bump com.google.errorprone:error_prone_annotations from 2.27.0 to 2.27.1
dependabot[bot] May 4, 2024
ecee724
Bump Guava to 33.2.0.
cpovirk May 6, 2024
0a2339b
Bump actions/checkout from 4.1.4 to 4.1.5
dependabot[bot] May 7, 2024
75a84c2
Recommend `assertThrows` and `assertFailsWith`.
cpovirk May 13, 2024
ab99ff8
Bump actions/checkout from 4.1.5 to 4.1.6
dependabot[bot] May 17, 2024
7d3ee0a
Bump org.codehaus.mojo:build-helper-maven-plugin from 3.5.0 to 3.6.0
dependabot[bot] May 20, 2024
eea7ac0
Bump com.google.protobuf:protobuf-java from 4.26.1 to 4.27.0
dependabot[bot] May 24, 2024
7a1c72f
Use `AssertionError(String, Throwable)` instead of supplying the caus…
cpovirk May 29, 2024
df32171
Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.4.1 to 3.5.0
dependabot[bot] May 30, 2024
e1d4e24
Bump Guava to 33.2.1.
cpovirk May 31, 2024
584a33b
Bump auto-value.version from 1.10.4 to 1.11.0
dependabot[bot] Jun 3, 2024
22732f2
Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.3 to 3.7.0
dependabot[bot] Jun 3, 2024
0ed374d
Bump org.checkerframework:checker-qual from 3.43.0 to 3.44.0
dependabot[bot] Jun 4, 2024
b4aba29
Bump com.google.errorprone:error_prone_annotations from 2.27.1 to 2.28.0
dependabot[bot] Jun 4, 2024
95cbdff
Group all dependabot updates together in the same commit to avoid mer…
chaoren Jun 4, 2024
cef5d45
Bump com.google.protobuf:protobuf-java from 4.27.0 to 4.27.1 in the d…
dependabot[bot] Jun 10, 2024
5274586
Minor grammar correction in comment
java-team-github-bot Jun 13, 2024
35848d4
Bump the dependencies group with 2 updates
dependabot[bot] Jun 17, 2024
6380af7
Remove @J2ktIncompatible from TruthJUnit
kevinoconnor7 Jun 17, 2024
d58e133
Bump actions/checkout from 4.1.6 to 4.1.7 in the github-actions group
dependabot[bot] Jun 21, 2024
d39e722
Bump org.apache.maven.plugins:maven-jar-plugin from 3.4.1 to 3.4.2 in…
dependabot[bot] Jun 24, 2024
ee680cb
Use JSpecify annotations in the public release.
cpovirk Jun 26, 2024
afda443
Annotate `formattingDiffsUsing` methods as supporting nullable elemen…
cpovirk Jun 27, 2024
af140d6
Fix grammar in Javadoc comments.
hpa16 Jun 27, 2024
7e9fc7a
Make StringSubject.matches suggest using containsMatch if matches(x) …
junyan59 Jun 27, 2024
2183a14
Migrate from legacy com.google.gwt to org.gwtproject.
cpovirk Jun 28, 2024
54e548c
Bump the dependencies group with 2 updates
dependabot[bot] Jul 1, 2024
99af8be
Bump org.codehaus.mojo:animal-sniffer-maven-plugin from 1.23 to 1.24 …
dependabot[bot] Jul 8, 2024
8ac91a6
Document that `truth-java8-extension` is obsolete.
cpovirk Jul 9, 2024
e107aea
Annotate the rest of the main package (basically just the Java 8 subj…
cpovirk Jul 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use @Nullable instead of @CheckForNull.
We'd been using the latter to work around a bug in Kotlin, but that bug was fixed in 1.8.20, and Google has on that version (or later) for a while.

(I think the bug is the flip side of [KT-57996](https://youtrack.jetbrains.com/issue/KT-57996/Usages-of-Foo-Nullable-produce-only-warnings-even-with-Xtype-enhancement-improvements-strict-mode-Xjspecify-annotationsstrict): In KT-57996, Kotlin didn't know that an annotated array was nullable, so it didn't produce the expected warning/error until 1.8.20. Here, Kotlin didn't know that an annotated array was nullable, so it prevented callers from passing null until 1.8.20.)

If Truth users outside Google are still using 1.8.20, they might be affected; I'm not completely sure. It might depend on whether they set `-Xtype-enhancement-improvements-strict-mode`??

RELNOTES=n/a
PiperOrigin-RevId: 532397177
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed May 16, 2023
commit 18c70af88046fc9519d304ab4ba8be1f101df851
19 changes: 8 additions & 11 deletions core/src/main/java/com/google/common/truth/Truth.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.google.common.collect.Table;
import java.math.BigDecimal;
import java.util.Map;
import javax.annotation.CheckForNull;
import org.checkerframework.checker.nullness.qual.Nullable;

/**
Expand Down Expand Up @@ -198,37 +197,35 @@ public static <T> ObjectArraySubject<T> assertThat(@Nullable T @Nullable [] actu
return assert_().that(actual);
}

// TODO(b/269115309): Switch back to @Nullable for Kotlin 1.8.20

public static PrimitiveBooleanArraySubject assertThat(@CheckForNull boolean[] actual) {
public static PrimitiveBooleanArraySubject assertThat(boolean @Nullable [] actual) {
return assert_().that(actual);
}

public static PrimitiveShortArraySubject assertThat(@CheckForNull short[] actual) {
public static PrimitiveShortArraySubject assertThat(short @Nullable [] actual) {
return assert_().that(actual);
}

public static PrimitiveIntArraySubject assertThat(@CheckForNull int[] actual) {
public static PrimitiveIntArraySubject assertThat(int @Nullable [] actual) {
return assert_().that(actual);
}

public static PrimitiveLongArraySubject assertThat(@CheckForNull long[] actual) {
public static PrimitiveLongArraySubject assertThat(long @Nullable [] actual) {
return assert_().that(actual);
}

public static PrimitiveByteArraySubject assertThat(@CheckForNull byte[] actual) {
public static PrimitiveByteArraySubject assertThat(byte @Nullable [] actual) {
return assert_().that(actual);
}

public static PrimitiveCharArraySubject assertThat(@CheckForNull char[] actual) {
public static PrimitiveCharArraySubject assertThat(char @Nullable [] actual) {
return assert_().that(actual);
}

public static PrimitiveFloatArraySubject assertThat(@CheckForNull float[] actual) {
public static PrimitiveFloatArraySubject assertThat(float @Nullable [] actual) {
return assert_().that(actual);
}

public static PrimitiveDoubleArraySubject assertThat(@CheckForNull double[] actual) {
public static PrimitiveDoubleArraySubject assertThat(double @Nullable [] actual) {
return assert_().that(actual);
}

Expand Down