Merge "Convert type to uppercase in command setters"

This commit is contained in:
Jenkins 2016-08-17 22:13:44 +00:00 committed by Gerrit Code Review
commit d088ea59c7
3 changed files with 12 additions and 0 deletions

View File

@ -89,6 +89,10 @@ public class CreateNotificationMethodCommand {
this.convertedPeriod = Validation.parseAndValidateNumber(period, "period");
}
public void setType(String type){
this.type = type == null ? null : type.toUpperCase();
}
public int getConvertedPeriod(){
return this.convertedPeriod;
}

View File

@ -83,6 +83,10 @@ public class PatchNotificationMethodCommand {
this.convertedPeriod = period;
}
public void setType(String type){
this.type = type == null ? null : type.toUpperCase();
}
public int getConvertedPeriod(){
return this.convertedPeriod;
}

View File

@ -88,6 +88,10 @@ public class UpdateNotificationMethodCommand {
this.convertedPeriod = Validation.parseAndValidateNumber(period, "period");
}
public void setType(String type){
this.type = type == null ? null : type.toUpperCase();
}
public int getConvertedPeriod(){
return this.convertedPeriod;
}