diff --git a/lab3/zad2/app/src/main/java/pl/jacekpoz/DHSetup.java b/lab3/zad2/app/src/main/java/pl/jacekpoz/DHSetup.java index 7139f68..a65497f 100644 --- a/lab3/zad2/app/src/main/java/pl/jacekpoz/DHSetup.java +++ b/lab3/zad2/app/src/main/java/pl/jacekpoz/DHSetup.java @@ -72,7 +72,7 @@ public class DHSetup implements IDHSetup { * raises `a` to the power of `b` */ @Override - public T power(T a, long b) { + public T power(final T a, long b) { T aCopy = this.constructor.apply(new GF.Params(a.getCharacteristic(), a.getValue())); T res = this.constructor.apply(new GF.Params(a.getCharacteristic(), a.getValue())); while (b > 0) { diff --git a/lab3/zad2/app/src/main/java/pl/jacekpoz/IDHSetup.java b/lab3/zad2/app/src/main/java/pl/jacekpoz/IDHSetup.java index 3974414..63834fd 100644 --- a/lab3/zad2/app/src/main/java/pl/jacekpoz/IDHSetup.java +++ b/lab3/zad2/app/src/main/java/pl/jacekpoz/IDHSetup.java @@ -10,5 +10,5 @@ public interface IDHSetup { /* * raises `a` to the power of `b` */ - public T power(T a, long b); + public T power(final T a, long b); }