mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 14:01:08 +01:00
requireNotNullOrEmpty -> requireNotNullNorEmpty
This commit is contained in:
parent
cf2b3ef634
commit
74bebc13e6
32 changed files with 82 additions and 52 deletions
|
|
@ -86,7 +86,7 @@ public class Affiliation implements ExtensionElement {
|
|||
* @param namespace the affiliation's namespace.
|
||||
*/
|
||||
public Affiliation(String node, Type affiliation, AffiliationNamespace namespace) {
|
||||
this.node = StringUtils.requireNotNullOrEmpty(node, "node must not be null or empty");
|
||||
this.node = StringUtils.requireNotNullNorEmpty(node, "node must not be null nor empty");
|
||||
this.affiliation = affiliation;
|
||||
this.jid = null;
|
||||
this.namespace = Objects.requireNonNull(namespace);
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@ public class SimplePayload implements ExtensionElement {
|
|||
|
||||
payload = xmlPayload;
|
||||
|
||||
elemName = StringUtils.requireNotNullOrEmpty(qname.getLocalPart(), "Could not determine element name from XML payload");
|
||||
ns = StringUtils.requireNotNullOrEmpty(qname.getNamespaceURI(), "Could not determine namespace from XML payload");
|
||||
elemName = StringUtils.requireNotNullNorEmpty(qname.getLocalPart(), "Could not determine element name from XML payload");
|
||||
ns = StringUtils.requireNotNullNorEmpty(qname.getNamespaceURI(), "Could not determine namespace from XML payload");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue