Remove Assignments to Parameters - refactor with android studio
是怎样?重构前:publicintdiscount(intinputVal,intquantity,intyearToDate){if(inputVal>50){inputVal-=2;}if(quantity>100){inputVal-=1;}if(yearToDate>10000){inputVal-=4;}returninputVal;}重构后:>```Javapublicintdisco