[ 
https://issues.apache.org/jira/browse/SOLR-18706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SOLR-18706:
----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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]

Reply via email to