mirror of
https://codeberg.org/PGPainless/bc-sop.git
synced 2025-09-09 03:09:40 +02:00
Fix formatting of backend version
This commit is contained in:
parent
975116c4a5
commit
ea8b1b6459
1 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,8 @@ import org.jetbrains.annotations.Nullable;
|
||||||
import sop.exception.SOPGPException;
|
import sop.exception.SOPGPException;
|
||||||
import sop.operation.Version;
|
import sop.operation.Version;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
public class BCVersion
|
public class BCVersion
|
||||||
extends AbstractBCOperation
|
extends AbstractBCOperation
|
||||||
implements Version {
|
implements Version {
|
||||||
|
@ -18,7 +20,10 @@ public class BCVersion
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public String getBackendVersion() {
|
public String getBackendVersion() {
|
||||||
return "Bouncy Castle " + new BouncyCastleProvider().getVersionStr();
|
return "Bouncy Castle " +
|
||||||
|
String.format(Locale.US, "%.2f", Double.parseDouble(
|
||||||
|
new BouncyCastleProvider().getVersionStr()
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue