Skip to content

Commit f516e43

Browse files
author
David Bateman
committed
GUACAMOLE-2137: Inverse of logic in VaultInfo.eqauls method
1 parent 1c8d620 commit f516e43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/guacamole-vault/modules/guacamole-vault-hv/src/main/java/org/apache/guacamole/vault/hv/conf/HvConfigurationService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,12 +487,12 @@ public boolean equals(Object o) {
487487
VaultInfo that = (VaultInfo) o;
488488
// If Token non null it is used for the connection
489489
if (Token == null || Token.trim().isEmpty())
490-
return Objects.equals(Uri, that.Uri) &&
491-
Objects.equals(Token, that.Token);
492-
else
493490
return Objects.equals(Uri, that.Uri) &&
494491
Objects.equals(Username, that.Username) &&
495492
Objects.equals(Password, that.Password);
493+
else
494+
return Objects.equals(Uri, that.Uri) &&
495+
Objects.equals(Token, that.Token);
496496
}
497497

498498
@Override

0 commit comments

Comments
 (0)