aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-07 20:05:38 +0700
committerGravatar Vitaly Takmazov2016-12-07 22:37:17 +0300
commitd65ceebd7b46ed9a993cb7c6ad5d01b0fffde3d4 (patch)
treed0132eb45df999503f8bb5712cfccfdce72d6cb5
parent69a5bdba32cdf0a48e51baa8c9fb28dca013f515 (diff)
code style improvenments
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java4
-rw-r--r--juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java4
2 files changed, 6 insertions, 2 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java b/juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java
index 3bb786e5..980c2d6a 100644
--- a/juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java
+++ b/juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java
@@ -7,6 +7,10 @@ import org.apache.commons.codec.digest.HmacUtils;
* Created by vitalyster on 05.12.2016.
*/
public class DialbackUtils {
+ private DialbackUtils() {
+ throw new IllegalStateException();
+ }
+
public static String generateDialbackKey(String secret, String to, String from, String id) {
return HmacUtils.hmacSha256Hex(DigestUtils.sha256(secret),
(to + " " + from + " " + id).getBytes());
diff --git a/juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java b/juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java
index b8a329db..ae7fc89c 100644
--- a/juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java
+++ b/juick-xmpp/src/main/java/com/juick/xmpp/extensions/JuickMessage.java
@@ -135,8 +135,8 @@ public class JuickMessage extends com.juick.Message implements StanzaChild {
if (getText() != null)
builder.append("<body>").append(XmlUtils.escape(getText())).append("</body>");
- for (com.juick.Tag Tag : getTags())
- builder.append("<tag>").append(XmlUtils.escape(Tag.getName())).append("</tag>");
+ for (com.juick.Tag tag : getTags())
+ builder.append("<tag>").append(XmlUtils.escape(tag.getName())).append("</tag>");
builder.append("</").append(TagName).append(">");