Spotbug rule violation

I’ve been solving this error from last 4 hours, thinking that there is some error in my code so I changed the code. But I’m still getting the same spotbugs error on line[34-36] but there is nothing by the name SortByClosingPrice on line[34-36]. I had written this method SortByClosingPrice during the initial stages of milestone 2. I think it’s a bug which is restricting from getting line[34-36] updated

Even I faced this error before.
I would suggest you to directly implement a lambda based comparator directly into the data structure where you are planning to use.
Search about lambda comparator im google and also learn how to implement directly while declaring instant of the data structure you are planning to use

Thanks for the reply.
Took a break, then cleared the cache and reloaded the workspace and problem solved