mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Rename NumberUtil.checkIfInUInt32Range() to requireUInt32
This commit is contained in:
parent
726a2de273
commit
839e347676
3 changed files with 16 additions and 4 deletions
|
@ -99,7 +99,7 @@ public class PrivacyItem {
|
|||
* @param order the order of this privacy item
|
||||
*/
|
||||
public PrivacyItem(Type type, String value, boolean allow, long order) {
|
||||
NumberUtil.checkIfInUInt32Range(order);
|
||||
NumberUtil.requireUInt32(order);
|
||||
this.type = type;
|
||||
this.value = value;
|
||||
this.allow = allow;
|
||||
|
|
|
@ -333,10 +333,10 @@ public abstract class ValidateElement implements ExtensionElement {
|
|||
*/
|
||||
public ListRange(Long min, Long max) {
|
||||
if (min != null) {
|
||||
NumberUtil.checkIfInUInt32Range(min);
|
||||
NumberUtil.requireUInt32(min);
|
||||
}
|
||||
if (max != null) {
|
||||
NumberUtil.checkIfInUInt32Range(max);
|
||||
NumberUtil.requireUInt32(max);
|
||||
}
|
||||
if (max == null && min == null) {
|
||||
throw new IllegalArgumentException("Either min or max must be given");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue