Skip to content

Commit a91829e

Browse files
committed
returned void in countryCodeIsValid
1 parent c8abb2a commit a91829e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

api/src/main/java/com/messagebird/MessageBirdClient.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,14 +1601,13 @@ private void verifyOffsetAndLimit(Integer offset, Integer limit) {
16011601
* Checks whether a particular country code is a recognized ISO Country.
16021602
*
16031603
* @param countryCode The country code in which the Number should be purchased.
1604-
* @throws IllegalArgumentException
1604+
* @throws IllegalArgumentException for invalid country code
16051605
*/
1606-
private Boolean countryCodeIsValid(String countryCode) throws IllegalArgumentException {
1607-
final Boolean isValid = Arrays.asList(Locale.getISOCountries()).contains(countryCode);
1606+
private void countryCodeIsValid(String countryCode) throws IllegalArgumentException {
1607+
final boolean isValid = Arrays.asList(Locale.getISOCountries()).contains(countryCode);
16081608
if (!isValid) {
16091609
throw new IllegalArgumentException("Invalid Country Code Provided.");
16101610
}
1611-
return true;
16121611
}
16131612

16141613
/**
@@ -1709,7 +1708,7 @@ public PurchasedNumber updateNumber(String number, String... tags) throws Unauth
17091708
/**
17101709
* Cancels a particular number.
17111710
*
1712-
* @param nummber The number to cancel.
1711+
* @param number The number to cancel.
17131712
* @throws GeneralException general exception
17141713
* @throws UnauthorizedException if client is unauthorized
17151714
* @throws NotFoundException if the resource is missing

0 commit comments

Comments
 (0)