We have this code
void build(boolean isCustomer, int service, int fee) {
if(isCustomer)
service = service * -1;
// rest of the code
}
We wanted to find out whether there are any such scenarios where we are multiplying a value with -1
, so we did a file search with * -1
and it listed out some other files
I believe with the asterisk any line ending with * -1
will be fetched, we can change our code to service *= -1;
but is there a way to search for this exact occurrence of * -1
? We even tried making Whole word and Case sensitive as true!