style: enable FinalClass in checkstyle (#5154)

This commit is contained in:
Godwill Christopher
2024-05-11 00:50:05 -06:00
committed by GitHub
parent 52f15b2b08
commit bbe4a025df
12 changed files with 12 additions and 12 deletions

View File

@ -126,7 +126,7 @@ public class GrahamScan {
return new PolarOrder();
}
private class PolarOrder implements Comparator<Point> {
private final class PolarOrder implements Comparator<Point> {
public int compare(Point p1, Point p2) {
int dx1 = p1.x - x;
int dy1 = p1.y - y;