convert T param in power to final in java
This commit is contained in:
parent
4e952bd117
commit
e659fcd51a
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ public class DHSetup<T extends IGF> implements IDHSetup<T> {
|
|||
* 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) {
|
||||
|
|
|
@ -10,5 +10,5 @@ public interface IDHSetup<T> {
|
|||
/*
|
||||
* raises `a` to the power of `b`
|
||||
*/
|
||||
public T power(T a, long b);
|
||||
public T power(final T a, long b);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue