From 0b8788a9fc52b060ac302970a3261ca5ab734036 Mon Sep 17 00:00:00 2001 From: Ingo Bauersachs Date: Thu, 20 Jul 2017 22:50:34 +0200 Subject: [PATCH] Fix parameter ordering in BoBHash construction --- .../src/main/java/org/jivesoftware/smackx/bob/BoBManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bob/BoBManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bob/BoBManager.java index 0c853a864..f7c7d261f 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bob/BoBManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bob/BoBManager.java @@ -159,7 +159,7 @@ public final class BoBManager extends Manager { public BoBInfo addBoB(BoBData bobData) { // 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 bobHashes = Collections.singleton(bobHash); bobHashes = Collections.unmodifiableSet(bobHashes);