Rename method to getValidAndExpiredUserIds()

This commit is contained in:
Paul Schaub 2021-12-22 12:42:31 +01:00
parent 56e60e88f4
commit 6c9c683c85
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
2 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ public class KeyRingInfo {
*
* @return bound user-ids
*/
public List<String> getBoundButPossiblyExpiredUserIds() {
public List<String> getValidAndExpiredUserIds() {
List<String> probablyExpired = new ArrayList<>();
List<String> userIds = getUserIds();

View File

@ -171,7 +171,7 @@ public class SecretKeyRingEditor implements SecretKeyRingEditorInterface {
// unmark previous primary user-ids to be non-primary
info = PGPainless.inspectKeyRing(secretKeyRing);
for (String otherUserId : info.getBoundButPossiblyExpiredUserIds()) {
for (String otherUserId : info.getValidAndExpiredUserIds()) {
if (userId.toString().equals(otherUserId)) {
continue;
}