You are doing a bug debug related to the Flowe Rating rating /books/{id}/summary
The closing point you leave a breakpoint BookService.getAverageRating(String)
Step through the code, and inspect the list of reviews in View of variables. Everything looks fine… unless you find suspicious entry, a review for the same user added more than once. You pause and think: “Hmmm … maybe these duplicate entries may have caused this problem. Will I use a set instead of a list?” So, you try to know where it is reviews
The variable has been announced. And at the same time when it hit you, the code doesn’t decrease at all!
Categories: Weight Loss
0 Comments