mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 04:12:04 +01:00
Fix parameter ordering in BoBHash construction
This commit is contained in:
parent
c7630362ef
commit
0b8788a9fc
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ public final class BoBManager extends Manager {
|
||||||
|
|
||||||
public BoBInfo addBoB(BoBData bobData) {
|
public BoBInfo addBoB(BoBData bobData) {
|
||||||
// We only support SHA-1 for now.
|
// We only support SHA-1 for now.
|
||||||
BoBHash bobHash = new BoBHash("sha1", SHA1.hex(bobData.getContent()));
|
BoBHash bobHash = new BoBHash(SHA1.hex(bobData.getContent()), "sha1");
|
||||||
|
|
||||||
Set<BoBHash> bobHashes = Collections.singleton(bobHash);
|
Set<BoBHash> bobHashes = Collections.singleton(bobHash);
|
||||||
bobHashes = Collections.unmodifiableSet(bobHashes);
|
bobHashes = Collections.unmodifiableSet(bobHashes);
|
||||||
|
|
Loading…
Reference in a new issue