mirror of
https://codeberg.org/PGPainless/bc-sop.git
synced 2025-09-08 18:59:41 +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.operation.Version;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class BCVersion
|
||||
extends AbstractBCOperation
|
||||
implements Version {
|
||||
|
@ -18,7 +20,10 @@ public class BCVersion
|
|||
@NotNull
|
||||
@Override
|
||||
public String getBackendVersion() {
|
||||
return "Bouncy Castle " + new BouncyCastleProvider().getVersionStr();
|
||||
return "Bouncy Castle " +
|
||||
String.format(Locale.US, "%.2f", Double.parseDouble(
|
||||
new BouncyCastleProvider().getVersionStr()
|
||||
));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue