toString() of enum options: Ensure lowercase

This commit is contained in:
Paul Schaub 2023-01-13 18:50:00 +01:00
parent eddcc11c99
commit 3bc19b27ad
3 changed files with 21 additions and 3 deletions

View file

@ -9,5 +9,11 @@ public enum ArmorLabel {
Sig,
Key,
Cert,
Message
Message,
;
@Override
public String toString() {
return super.toString().toLowerCase();
}
}

View file

@ -6,5 +6,11 @@ package sop.enums;
public enum EncryptAs {
Binary,
Text
Text,
;
@Override
public String toString() {
return super.toString().toLowerCase();
}
}

View file

@ -13,5 +13,11 @@ public enum SignAs {
/**
* Signature is made over the message in text mode.
*/
Text
Text,
;
@Override
public String toString() {
return super.toString().toLowerCase();
}
}