Skip to content

Commit 59d174c

Browse files
cpovirkGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedDec 22, 2022
Include information about method parameters in class file.
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
1 parent 6bf3c77 commit 59d174c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎android/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
<source>1.8</source>
128128
<target>1.8</target>
129129
<encoding>UTF-8</encoding>
130+
<parameters>true</parameters>
130131
<compilerArgs>
131132
<!--
132133
Make includes/excludes fully work:

‎pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
<source>1.8</source>
129129
<target>1.8</target>
130130
<encoding>UTF-8</encoding>
131+
<parameters>true</parameters>
131132
<compilerArgs>
132133
<!--
133134
Make includes/excludes fully work:

0 commit comments

Comments
 (0)