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
|
|
@ -318,8 +318,8 @@ public class DiscoverInfo extends IQ implements TypedCloneable<DiscoverInfo> {
|
|||
* @param lang the entity's lang.
|
||||
*/
|
||||
public Identity(String category, String type, String name, String lang) {
|
||||
this.category = StringUtils.requireNotNullOrEmpty(category, "category cannot be null");
|
||||
this.type = StringUtils.requireNotNullOrEmpty(type, "type cannot be null");
|
||||
this.category = StringUtils.requireNotNullNorEmpty(category, "category cannot be null");
|
||||
this.type = StringUtils.requireNotNullNorEmpty(type, "type cannot be null");
|
||||
this.key = XmppStringUtils.generateKey(category, type);
|
||||
this.name = name;
|
||||
this.lang = lang;
|
||||
|
|
@ -500,7 +500,7 @@ public class DiscoverInfo extends IQ implements TypedCloneable<DiscoverInfo> {
|
|||
* @param variable the feature's variable.
|
||||
*/
|
||||
public Feature(String variable) {
|
||||
this.variable = StringUtils.requireNotNullOrEmpty(variable, "variable cannot be null");
|
||||
this.variable = StringUtils.requireNotNullNorEmpty(variable, "variable cannot be null");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue