Eric Pugh created SOLR-18706:
--------------------------------
Summary: Fix lossy-conversions warnings and enforce
-Xlint:lossy-conversions
Key: SOLR-18706
URL: https://issues.apache.org/jira/browse/SOLR-18706
Project: Solr
Issue Type: Sub-task
Components: Build
Reporter: Eric Pugh
Two warnings: an implicit int -> byte narrowing in a compound assignment at
{{IndexFetcherPacketProtocolTest.java:183}} (the other one is in
solr/benchmark, which is compiled with {{-Xlint:none}}).
* Fix the narrowing with an explicit cast (or change the variable type),
checking the intended behaviour.
* Add {{-Xlint:lossy-conversions}} to the compiler args in
{{gradle/java/javac.gradle}}.
Good first issue: shows the whole fix-then-enforce pattern in one small PR.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]