Fix all versions advertising themselves as V0.
This commit is contained in:
parent
cce8db5c48
commit
60200f6302
@ -151,7 +151,7 @@ public interface MPAlgorithm {
|
|||||||
/**
|
/**
|
||||||
* The algorithm iterations.
|
* The algorithm iterations.
|
||||||
*/
|
*/
|
||||||
enum Version implements MPAlgorithm {
|
enum Version implements MPAlgorithm {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* bugs:
|
* bugs:
|
||||||
@ -346,7 +346,7 @@ public interface MPAlgorithm {
|
|||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public Version version() {
|
public Version version() {
|
||||||
return MPAlgorithm.Version.V0;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
|
@ -20,7 +20,6 @@ package com.lyndir.masterpassword;
|
|||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.google.common.primitives.UnsignedInteger;
|
import com.google.common.primitives.UnsignedInteger;
|
||||||
import com.lyndir.lhunath.opal.system.CodeUtils;
|
|
||||||
import com.lyndir.lhunath.opal.system.logging.Logger;
|
import com.lyndir.lhunath.opal.system.logging.Logger;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.EnumMap;
|
import java.util.EnumMap;
|
||||||
@ -56,6 +55,7 @@ public class MPMasterKey {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
protected void finalize()
|
protected void finalize()
|
||||||
throws Throwable {
|
throws Throwable {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user