Java does have exhaustiveness checking on switch statements for sealed types, but not enums (for backward compatibility), which is probably what you're using.
Try this:
sealed interface Shape permits Circle, Rectangle { }
record Circle(double radius) implements Shape { }
record Rectangle(double length, double width) implements Shape { }
void test() {
Shape shape = new Circle(5);
switch (shape) {
case Circle _ -> System.out.println("Circle");
case Rectangle _ -> System.out.println("Rectangle"); // Comment out this line to get an error.
}
}
Yet, over a million israelis left, and their media complains about it. And yet, we see the pride of the Palestinian people in them facing one of the most brutal regimes in history, they stand tall and strong.
That isn't true. israel is an apartheid state, there are many documentaries showing their treatment of people who are non-Jews as second or third class citizens, or even Jews who have a darker skin color. We saw how they force steralized Etheopian jews for instance. We saw how they literally spit on christians.
It's the opposite actually. This is why zionist media and their people are upset about their dead during these past months. Hamas offered a deal from the very beginning to get back Palestinian hostages, but the zionists refused. Now, the zionists have been forced to accept and it's clear the amount of upset within their government.
reply