From 2bf6435881a133c630fd50d610c6ef2e606fb1e1 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 25 May 2016 22:42:46 +0200 Subject: [PATCH] Make Bind IQ constructor private --- .../src/main/java/org/jivesoftware/smack/packet/Bind.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/Bind.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/Bind.java index e3e92f320..a8dfcffa3 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/Bind.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/Bind.java @@ -1,6 +1,6 @@ /** * - * Copyright 2003-2007 Jive Software. + * Copyright 2003-2007 Jive Software, 2015-2016 Florian Schmaus. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ import org.jxmpp.jid.parts.Resourcepart; * * @author Gaston Dombiak */ -public class Bind extends IQ { +public final class Bind extends IQ { public static final String ELEMENT = "bind"; public static final String NAMESPACE = "urn:ietf:params:xml:ns:xmpp-bind"; @@ -39,7 +39,7 @@ public class Bind extends IQ { private final Resourcepart resource; private final EntityFullJid jid; - public Bind(Resourcepart resource, EntityFullJid jid) { + private Bind(Resourcepart resource, EntityFullJid jid) { super(ELEMENT, NAMESPACE); this.resource = resource; this.jid = jid;