We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c772277 commit 2023730Copy full SHA for 2023730
src/main/java/com/thealgorithms/physics/SnellsLaw.java
@@ -5,8 +5,10 @@
5
* n1 * sin(theta1) = n2 * sin(theta2)
6
* @see <a href="https://en.wikipedia.org/wiki/Snell%27s_law">Snell's Law</a>
7
*/
8
-public class SnellLaw {
9
-
+public final class SnellLaw {
+ private SnellLaw() {
10
+ throw new AssertionError("No instances.");
11
+ }
12
/**
13
* Computes the refracted angle (theta2) in radians.
14
*
0 commit comments