Skip to content

Commit

Permalink
Include information about method parameters in class file.
Browse files Browse the repository at this point in the history
This helps IDEs and static analyzers (such as https://errorprone.info/bugpattern/ParameterName and maybe https://errorprone.info/bugpattern/TimeUnitMismatch).

It also increases the size of the Guava jar by ~2.4%. Note that Proguard removes the new information by default.

RELNOTES=Changed the Guava jar to include information about method parameters in its class files. If you use static analyzers that look at method-parameter names, you may see new warnings or errors if they are now able to detect mismatches.
PiperOrigin-RevId: 497199980
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Dec 22, 2022
1 parent 6bf3c77 commit 59d174c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<parameters>true</parameters>
<compilerArgs>
<!--
Make includes/excludes fully work:
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<parameters>true</parameters>
<compilerArgs>
<!--
Make includes/excludes fully work:
Expand Down

0 comments on commit 59d174c

Please sign in to comment.