#14620 - LITERAL_CASE token support in RightCurlyCheck
Bug fixes:
#14765 - OverloadMethodDeclarationOrder check ignores anything besides methods
#14788 - MagicNumberCheck NPE when ignoring field declarations
#14092 - UnusedLocalVariable does not support local classes
#12923 - UnusedImports does not report unused static imports when the method is used as a method reference
If you know of Guava Android users who have not yet upgraded to at least release 33.0.0, please encourage them to upgrade, preferably to today's release, 33.2.0. These releases have begun adding Java 8+ APIs to guava-android. While we don't anticipate problems, we do anticipate that any unexpected problems could force a disruptive rollback. To minimize any disruption, we'd like to catch any such problems early.
Dropped testing for Android versions before Lollipop (API Level 21). Guava may stop working under older versions in the future, or it may have done so already.
collect: Made our Collector APIs (e.g., ImmutableList.toImmutableList()) available in guava-android. More Java 8 APIs will follow in future releases. (96fca0b747)
As always, streams are available to Android code only when that code enables library desugaring or targets a new enough API Level (24 (Nougat) for many stream APIs). (But note that we test only with library desugaring, so we don't currently know if API Level 24 is high enough to use our Collector APIs unless you have also enabled library desugaring.) Guava users who avoid the Collector APIs do not need to meet this requirement.
collect: Fixed a potential NullPointerException in ImmutableMap.Builder on a rare code path. (70a98115d8)
This release is the final step of copying all our methods from Truth8 to Truth. If you have not already migrated your usages from Truth8 to Truth, you may see build errors:
OptionalSubjectTest.java:39: error: reference to assertThat is ambiguous
assertThat(Optional.of("foo")).isPresent();
^
both method assertThat(@org.checkerframework.checker.nullness.qual.Nullable Optional<?>) in Truth8 and method assertThat(@org.checkerframework.checker.nullness.qual.Nullable Optional<?>) in Truth match
In most cases, you can migrate your whole project mechanically: git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'. (You can make that change before upgrading to Truth 1.4.2 or as part of the same commit.)
If you instead need to migrate your project incrementally (for example, because it is very large), you may want to upgrade your version of Truth incrementally, too, following our instructions for 1.3.0 and 1.4.0.
For help
Please feel welcome to open an issue to report problems or request help.
Changelog
Removed temporary type parameters from Truth.assertThat(Stream) and Truth.assertThat(Optional). This can create build errors, which you can fix by replacing all your references to Truth8 with references to Truth. (45782bd0e)
1.4.1
This release deprecates Truth8.
All its methods have become available on the main Truth class. In most cases, you can migrate your whole project mechanically: git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'
While we do not plan to delete Truth8, we recommend migrating off it, at least if you static import assertThat: If you do not migrate, such static imports will become ambiguous in Truth 1.4.2, breaking your build.
1.4.0
In this release, our assertions on Java 8 types continue to move from the Truth8 class to the main Truth class. This change should not break compatibility for any supported JDK or Android version, even users who test under old versions of Android without API desugaring. Additionally, we will never break binary compatibility, though some users will have to make changes to their source code in order for it to compile against newer versions.
This release is likely to lead to more build failures than 1.3.0 did. However, those failures should be straightforward to fix.
Example build failure
Foo.java:152: error: reference to assertThat is ambiguous
assertThat(repo.findFileWithName("foo")).isNull();
^
both method assertThat(@org.checkerframework.checker.nullness.qual.Nullable Path) in Truth8 and method assertThat(@org.checkerframework.checker.nullness.qual.Nullable Path) in Truth match
Simplest upgrade strategy (if you can update all your code atomically in the same commit as the Truth upgrade)
In the same commit:
Upgrade Truth to 1.4.0.
Replace import static com.google.common.truth.Truth8.assertThat; with import static com.google.common.truth.Truth.assertThat;.
Bumps the maven-deps group with 17 updates:
10.15.0
10.16.0
33.1.0-jre
33.2.0-jre
1.1.3
1.4.2
4.11.0
5.2.0
1.14.13
1.14.14
1.14.13
1.14.14
3.2.2
3.2.4
3.1.1
3.1.2
3.3.0
3.4.1
2.0.1
2.1.0
3.3.0
3.3.1
6.4.0
7.0.0
3.1.1
3.1.2
24.0.0
24.1.0
3.20.2
3.25.3
4.9.1
4.12.0
1.1.5
1.1.6
Updates
com.puppycrawl.tools:checkstyle
from 10.15.0 to 10.16.0Release notes
Sourced from com.puppycrawl.tools:checkstyle's releases.
Commits
e8aa612
[maven-release-plugin] prepare release checkstyle-10.16.087cf29c
doc: release notes for 10.16.04096711
Issue #14765: fix OverloadMethodsDeclarationOrderCheck5b05fff
Issue #14625: fixed inspections violations MismatchedJavadocCode48de202
dependency: bump com.google.errorprone:error_prone_core508757d
Issue #14625: move TailRecursion inspection problems to separate issue10908a4
Issue #14625: fix inspection violations OptionalGetWithoutIsPresent508c361
Issue #13213: Remove '//ok' comments from InputJavadocMethodExtraThrows40a1bba
supplemental: removed conditional that checks suppression list101e623
Issue #14715: Enforced new naming convention in IT area 24Updates
com.google.guava:guava
from 33.1.0-jre to 33.2.0-jreRelease notes
Sourced from com.google.guava:guava's releases.
Commits
Updates
com.google.truth:truth
from 1.1.3 to 1.4.2Release notes
Sourced from com.google.truth:truth's releases.
... (truncated)
Commits
Updates
org.mockito:mockito-inline
from 4.11.0 to 5.2.0Release notes
Sourced from org.mockito:mockito-inline's releases.
... (truncated)
Commits
74c811a
Make InjectMocks aware of generic types (#2923)fc136e4
Explicitly use UTF-8 in IOUtils (#2935)9473470
Bump io.github.gradle-nexus:publish-plugin from 1.2.0 to 1.3.0 (#2932)dddeb72
Bump versions.bytebuddy from 1.14.0 to 1.14.1 (#2931)92ed602
Bump com.google.googlejavaformat:google-java-format from 1.15.0 to 1.16.0 (#2...19ef24a
Bump com.diffplug.spotless from 6.15.0 to 6.16.0 (#2930)8b96cc1
Bump io.github.gradle-nexus:publish-plugin from 1.1.0 to 1.2.0 (#2924)4eb275c
Make project relocatable by using relative paths in the OSGi test task (#2920)d937334
Bump com.github.ben-manes.versions from 0.45.0 to 0.46.0 (#2922)60b0e71
Bump versions.bytebuddy from 1.13.0 to 1.14.0 (#2918)Updates
net.bytebuddy:byte-buddy
from 1.14.13 to 1.14.14Release notes
Sourced from net.bytebuddy:byte-buddy's releases.
Changelog
Sourced from net.bytebuddy:byte-buddy's changelog.
Commits
ae503b6
[maven-release-plugin] prepare release byte-buddy-1.14.14736a4c9
[release] Release new versionf9469fc
Mask return type in safe string.85baec7
Fix android strict mode warning (#1623)d6ca347
Add JavaDoc for NamedPipe handling on Windows (#1621)0a91a85
Windows Attachment: Allow access to named pipe for medium Integrity clients (...5efc70c
Soften up rule for identifier control.95b083f
Update InstrumentedType.java to check instrumented classfile is in valid Unic...126eafc
Update harden-runner.147037b
Add Java 23 to build matrix.Updates
net.bytebuddy:byte-buddy-agent
from 1.14.13 to 1.14.14Release notes
Sourced from net.bytebuddy:byte-buddy-agent's releases.
Changelog
Sourced from net.bytebuddy:byte-buddy-agent's changelog.
Commits
ae503b6
[maven-release-plugin] prepare release byte-buddy-1.14.14736a4c9
[release] Release new versionf9469fc
Mask return type in safe string.85baec7
Fix android strict mode warning (#1623)d6ca347
Add JavaDoc for NamedPipe handling on Windows (#1621)0a91a85
Windows Attachment: Allow access to named pipe for medium Integrity clients (...5efc70c
Soften up rule for identifier control.95b083f
Update InstrumentedType.java to check instrumented classfile is in valid Unic...126eafc
Update harden-runner.147037b
Add Java 23 to build matrix.Updates
net.bytebuddy:byte-buddy-agent
from 1.14.13 to 1.14.14Release notes
Sourced from net.bytebuddy:byte-buddy-agent's releases.
Changelog
Sourced from net.bytebuddy:byte-buddy-agent's changelog.
Commits
ae503b6
[maven-release-plugin] prepare release byte-buddy-1.14.14736a4c9
[release] Release new versionf9469fc
Mask return type in safe string.85baec7
Fix android strict mode warning (#1623)d6ca347
Add JavaDoc for NamedPipe handling on Windows (#1621)0a91a85
Windows Attachment: Allow access to named pipe for medium Integrity clients (...5efc70c
Soften up rule for identifier control.95b083f
Update InstrumentedType.java to check instrumented classfile is in valid Unic...126eafc
Update harden-runner.147037b
Add Java 23 to build matrix.Updates
org.apache.maven.plugins:maven-gpg-plugin
from 3.2.2 to 3.2.4Release notes
Sourced from org.apache.maven.plugins:maven-gpg-plugin's releases.
... (truncated)
Commits
789149e
[maven-release-plugin] prepare release maven-gpg-plugin-3.2.4893aedc
[MGPG-125] Fix "bestPractices" (#95)b6f0324
[MGPG-126] Bump commons-io:commons-io from 2.16.0 to 2.16.1 (#94)3c5878b
[maven-release-plugin] prepare for next development iteration89b91a4
[maven-release-plugin] prepare release maven-gpg-plugin-3.2.3fc2efa3
[MGPG-123][MGPG-124] Dependency upgrades (#93)50222d3
[MGPG-120] New mojo sign-deployed (#88)a6c3a09
[MGPG-122] Bump org.apache.maven.plugins:maven-invoker-plugin from 3.6.0 to 3...78f5e37
[MGPG-121] Return the workaround for pseudo security (#90)582df74
[MGPG-117] Improve passphrase handling (#86)Updates
org.apache.maven.plugins:maven-install-plugin
from 3.1.1 to 3.1.2Release notes
Sourced from org.apache.maven.plugins:maven-install-plugin's releases.
Commits
e1494c1
[maven-release-plugin] prepare release maven-install-plugin-3.1.26712ae8
Remove workaround, handle it centrally1fa847f
Bump workflowbdc93d5
Quickfix: move to zulu7b9bf51
[MINSTALL-193] Parent 42, min Maven 3.6.3 (#64)e914367
[MINSTALL-195] Include artifactId in InstallMojo#processProject messages3ebb448
[MINSTALL-197] Update to parent 41, cleanup (#61)30d2b53
[MINSTALL-192] - Code cleanups429ad5b
[MNG-6829] Replace StringUtils#isEmpty(String) & #isNotEmpty(String) (#58)f6377c4
configure notificationsUpdates
org.apache.maven.plugins:maven-jar-plugin
from 3.3.0 to 3.4.1Release notes
Sourced from org.apache.maven.plugins:maven-jar-plugin's releases.
Commits
8b29adc
[maven-release-plugin] prepare release maven-jar-plugin-3.4.1325b299
[MJAR-308] Bump org.apache.maven.plugins:maven-plugins from 41 to 42 (#85)52111cc
[MJAR-307] Wrong version of commons-io cause a ClassNotFound o.a.commons.io.f...902d4c5
[maven-release-plugin] prepare for next development iteration992f44a
[maven-release-plugin] prepare release maven-jar-plugin-3.4.05e31b99
[MJAR-296] Allow including files excluded by default. (#67)ddfb635
[MJAR-306] Use properties for plugins versions in LifecycleMappingaeffa39
[MJAR-304] Refresh download pageee85d59
[MJAR-303] Cleanup declared dependencies845c120
Bump org.junit:junit-bom from 5.10.1 to 5.10.2Updates
org.apache.maven.plugins:maven-scm-plugin
from 2.0.1 to 2.1.0Commits
55186fd
[maven-release-plugin] prepare release maven-scm-2.1.095817d6
[SCM-939] Assume SCM is presentcb1efe4
Bump commons-io:commons-io from 2.16.0 to 2.16.1 (#206)d77b92e
[SCM-1022] jgit push failure is not failing the build6991a0b
Explicitly return true in selectorsa297237
[SCM-914] Introduce properly typed last modified date (#193)93d0142
[SCM-1024] maven-scm-plugin tests do not properly check for existence of svn ...17a44f9
[SCM-1023] Upgrade componentscdd5768
[SCM-1021] Bump org.apache.commons:commons-lang3 from 3.11 to 3.14.0 (#187)4c5cd26
[SCM-1020] Bump org.apache.commons:commons-text from 1.10.0 to 1.11.0 (#189)Updates
org.apache.maven.plugins:maven-source-plugin
from 3.3.0 to 3.3.1Commits
f80596e
[maven-release-plugin] prepare release maven-source-plugin-3.3.17626998
Bump apache/maven-gh-actions-shared from 3 to 483c963c
Bump org.apache.maven.plugins:maven-plugins from 39 to 41 (#18)40ae495
Bump org.codehaus.plexus:plexus-archiver from 4.8.0 to 4.9.1 (#20)073462b
Bump org.apache.maven:maven-archiver from 3.6.0 to 3.6.1 (#21)0b1c823
Fix typos in AbstractSourceJarMojo exception099c65a
[MSOURCES-142] Bump org.codehaus.plexus:plexus-archiver from 4.7.1 to 4.8.0 (...1edeea4
[MSOURCES-139] Fix typo in AbstractSourceJarMojo exception436966e
[maven-release-plugin] prepare for next development iterationUpdates
biz.aQute.bnd:bnd-maven-plugin
from 6.4.0 to 7.0.0Release notes
Sourced from biz.aQute.bnd:bnd-maven-plugin's releases.
Commits
b82dc86
build: Build Release 7.0.07fddd3e
build: Build Release 7.0.0.RC35f700d2
Handle the internal refactoring packages moving bundlesb764ee8
build: Build Release 7.0.0.RC21b4ca76
Removes Require-Capability for osgi.service AnyServiced185ade
Fix MojoExecutionException in m2e plugin when using maven-jar-plugin 3.x709285c
build: Build Release 7.0.0.RC17d05252
Merge pull request #5765 from DataInMotion/576140e21c3
Merge pull request #5769 from bndtools/dependabot/github_actions/actions/uplo...daca980
build(deps): Bump actions/upload-artifact from 3.1.2 to 3.1.3Updates
org.apache.maven.plugins:maven-deploy-plugin
from 3.1.1 to 3.1.2Release notes
Sourced from org.apache.maven.plugins:maven-deploy-plugin's releases.
Commits
4f016bc
[maven-release-plugin] prepare release maven-deploy-plugin-3.1.20ed18be
Remove workaround, handle it centrallyb9c1c8b
[MDEPLOY-314] Include artifactId in DeployMojo#processProject messages74d331b
[MDEPLOY-316] Parent 42 and prerequisite 3.6.3 (#54)ac9c49d
Bump org.mockito:mockito-core from 2.28.2 to 4.11.0de7cefb
Bump apache/maven-gh-actions-shared from 3 to 4edf85d7
Add Dependabot390e610
[MDEPLOY-313] Update to parent 41, cleanup (#47)29f3c81
DeployFileMojo#readModel(File): fixed MojoExecutionException javadoc9039fc6
Type: fill --> fileUpdates
org.jetbrains:annotations
from 24.0.0 to 24.1.0Release notes
Sourced from org.jetbrains:annotations's releases.
Changelog
Sourced from org.jetbrains:annotations's changelog.