From 58b9502bc96f8749a64d9ff81b5c35f0b0dde354 Mon Sep 17 00:00:00 2001 From: Coda Hale Date: Sat, 30 Mar 2019 21:05:31 -0700 Subject: [PATCH] Make variable final. --- src/main/java/com/codahale/shamir/Scheme.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/codahale/shamir/Scheme.java b/src/main/java/com/codahale/shamir/Scheme.java index 04a4d1d..db0e9b4 100644 --- a/src/main/java/com/codahale/shamir/Scheme.java +++ b/src/main/java/com/codahale/shamir/Scheme.java @@ -139,7 +139,7 @@ public boolean equals(Object o) { if (!(o instanceof Scheme)) { return false; } - Scheme scheme = (Scheme) o; + final Scheme scheme = (Scheme) o; return n == scheme.n && k == scheme.k && Objects.equals(random, scheme.random); }