Buggy code:
@ Parameter ( name = ApiConstants . GROUP , type = CommandType . STRING , description = "an<seq2seq4repair_space>optional<seq2seq4repair_space>group<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine" ) private String group ; @ Parameter ( name = ApiConstants . HYPERVISOR , type = CommandType . STRING , description = "the<seq2seq4repair_space>hypervisor<seq2seq4repair_space>on<seq2seq4repair_space>which<seq2seq4repair_space>to<seq2seq4repair_space>deploy<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine.<seq2seq4repair_space>" + "The<seq2seq4repair_space>parameter<seq2seq4repair_space>is<seq2seq4repair_space>required<seq2seq4repair_space>and<seq2seq4repair_space>respected<seq2seq4repair_space>only<seq2seq4repair_space>when<seq2seq4repair_space>hypervisor<seq2seq4repair_space>info<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>set<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>ISO//Template<seq2seq4repair_space>passed<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>call" ) private String hypervisor ; @ Parameter ( name = ApiConstants . USER_DATA , type = CommandType . STRING , description = "an<seq2seq4repair_space>optional<seq2seq4repair_space>binary<seq2seq4repair_space>data<seq2seq4repair_space>that<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>sent<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine<seq2seq4repair_space>upon<seq2seq4repair_space>a<seq2seq4repair_space>successful<seq2seq4repair_space>deployment.<seq2seq4repair_space>This<seq2seq4repair_space>binary<seq2seq4repair_space>data<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>base64<seq2seq4repair_space>encoded<seq2seq4repair_space>before<seq2seq4repair_space>adding<seq2seq4repair_space>it<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>request.<seq2seq4repair_space>Using<seq2seq4repair_space>HTTP<seq2seq4repair_space>GET<seq2seq4repair_space>(via<seq2seq4repair_space>querystring),<seq2seq4repair_space>you<seq2seq4repair_space>can<seq2seq4repair_space>send<seq2seq4repair_space>up<seq2seq4repair_space>to<seq2seq4repair_space>2KB<seq2seq4repair_space>of<seq2seq4repair_space>data<seq2seq4repair_space>after<seq2seq4repair_space>base64<seq2seq4repair_space>encoding.<seq2seq4repair_space>Using<seq2seq4repair_space>HTTP<seq2seq4repair_space>POST(via<seq2seq4repair_space>POST<seq2seq4repair_space>body),<seq2seq4repair_space>you<seq2seq4repair_space>can<seq2seq4repair_space>send<seq2seq4repair_space>up<seq2seq4repair_space>to<seq2seq4repair_space>32K<seq2seq4repair_space>of<seq2seq4repair_space>data<seq2seq4repair_space>after<seq2seq4repair_space>base64<seq2seq4repair_space>encoding." , length = 32768 ) private String userData ; @ Parameter ( name = ApiConstants . SSH_KEYPAIR , type = CommandType . STRING , description = "name<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>ssh<seq2seq4repair_space>key<seq2seq4repair_space>pair<seq2seq4repair_space>used<seq2seq4repair_space>to<seq2seq4repair_space>login<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine" ) private String sshKeyPairName ; @ Parameter ( name = ApiConstants . HOST_ID , type = CommandType . UUID , entityType = HostResponse . class , description = "destination<seq2seq4repair_space>Host<seq2seq4repair_space>ID<seq2seq4repair_space>to<seq2seq4repair_space>deploy<seq2seq4repair_space>the<seq2seq4repair_space>VM<seq2seq4repair_space>to<seq2seq4repair_space>-<seq2seq4repair_space>parameter<seq2seq4repair_space>available<seq2seq4repair_space>for<seq2seq4repair_space>root<seq2seq4repair_space>admin<seq2seq4repair_space>only" ) private Long hostId ; @ ACL @ Parameter ( name = ApiConstants . SECURITY_GROUP_IDS , type = CommandType . LIST , collectionType = CommandType . UUID , entityType = SecurityGroupResponse . class , description = "comma<seq2seq4repair_space>separated<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>security<seq2seq4repair_space>groups<seq2seq4repair_space>id<seq2seq4repair_space>that<seq2seq4repair_space>going<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>applied<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine.<seq2seq4repair_space>" + ( "Should<seq2seq4repair_space>be<seq2seq4repair_space>passed<seq2seq4repair_space>only<seq2seq4repair_space>when<seq2seq4repair_space>vm<seq2seq4repair_space>is<seq2seq4repair_space>created<seq2seq4repair_space>from<seq2seq4repair_space>a<seq2seq4repair_space>zone<seq2seq4repair_space>with<seq2seq4repair_space>Basic<seq2seq4repair_space>Network<seq2seq4repair_space>support." + "<seq2seq4repair_space>Mutually<seq2seq4repair_space>exclusive<seq2seq4repair_space>with<seq2seq4repair_space>securitygroupnames<seq2seq4repair_space>parameter" ) ) private List < Long > securityGroupIdList ; @ ACL @ Parameter ( name = ApiConstants . SECURITY_GROUP_NAMES , type = CommandType . LIST , collectionType = CommandType . STRING , entityType = SecurityGroupResponse . class , description = "comma<seq2seq4repair_space>separated<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>security<seq2seq4repair_space>groups<seq2seq4repair_space>names<seq2seq4repair_space>that<seq2seq4repair_space>going<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>applied<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine." + ( "<seq2seq4repair_space>Should<seq2seq4repair_space>be<seq2seq4repair_space>passed<seq2seq4repair_space>only<seq2seq4repair_space>when<seq2seq4repair_space>vm<seq2seq4repair_space>is<seq2seq4repair_space>created<seq2seq4repair_space>from<seq2seq4repair_space>a<seq2seq4repair_space>zone<seq2seq4repair_space>with<seq2seq4repair_space>Basic<seq2seq4repair_space>Network<seq2seq4repair_space>support.<seq2seq4repair_space>" + "Mutually<seq2seq4repair_space>exclusive<seq2seq4repair_space>with<seq2seq4repair_space>securitygroupids<seq2seq4repair_space>parameter" ) ) private List < String > securityGroupNameList ; @ Parameter ( name = ApiConstants . IP_NETWORK_LIST , type = CommandType . MAP , description = "ip<seq2seq4repair_space>to<seq2seq4repair_space>network<seq2seq4repair_space>mapping.<seq2seq4repair_space>Can't<seq2seq4repair_space>be<seq2seq4repair_space>specified<seq2seq4repair_space>with<seq2seq4repair_space>networkIds<seq2seq4repair_space>parameter." + "<seq2seq4repair_space>Example:<seq2seq4repair_space>iptonetworklist[0].ip=10.10.10.11&iptonetworklist[0].ipv6=fc00:1234:5678::abcd&iptonetworklist[0].networkid=uuid<seq2seq4repair_space>-<seq2seq4repair_space>requests<seq2seq4repair_space>to<seq2seq4repair_space>use<seq2seq4repair_space>ip<seq2seq4repair_space>10.10.10.11<seq2seq4repair_space>in<seq2seq4repair_space>network<seq2seq4repair_space>id=uuid" ) private Map ipToNetworkList ; @ Parameter ( name = ApiConstants . IP_ADDRESS , type = CommandType . STRING , description = "the<seq2seq4repair_space>ip<seq2seq4repair_space>address<seq2seq4repair_space>for<seq2seq4repair_space>default<seq2seq4repair_space>vm's<seq2seq4repair_space>network" ) private String ipAddress ; @ Parameter ( name = ApiConstants . IP6_ADDRESS , type = CommandType . STRING , description = "the<seq2seq4repair_space>ipv6<seq2seq4repair_space>address<seq2seq4repair_space>for<seq2seq4repair_space>default<seq2seq4repair_space>vm's<seq2seq4repair_space>network" ) private String ip6Address ; @ Parameter ( name = ApiConstants . KEYBOARD , type = CommandType . STRING , description = "an<seq2seq4repair_space>optional<seq2seq4repair_space>keyboard<seq2seq4repair_space>device<seq2seq4repair_space>type<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine.<seq2seq4repair_space>valid<seq2seq4repair_space>value<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>de,de-ch,es,fi,fr,fr-be,fr-ch,is,it,jp,nl-be,no,pt,uk,us" ) private String keyboard ; @ Parameter ( name = ApiConstants . PROJECT_ID , type = CommandType . UUID , entityType = ProjectResponse . class , description = "Deploy<seq2seq4repair_space>vm<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>project" ) private Long projectId ; @ Parameter ( name = ApiConstants . START_VM , type = CommandType . BOOLEAN , description = "true<seq2seq4repair_space>if<seq2seq4repair_space>network<seq2seq4repair_space>offering<seq2seq4repair_space>supports<seq2seq4repair_space>specifying<seq2seq4repair_space>ip<seq2seq4repair_space>ranges;<seq2seq4repair_space>defaulted<seq2seq4repair_space>to<seq2seq4repair_space>true<seq2seq4repair_space>if<seq2seq4repair_space>not<seq2seq4repair_space>specified" ) private Boolean startVm ; @ ACL @ Parameter ( name = ApiConstants . AFFINITY_GROUP_IDS , type = CommandType . LIST , collectionType = CommandType . UUID , entityType = AffinityGroupResponse . class , description = "comma<seq2seq4repair_space>separated<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>affinity<seq2seq4repair_space>groups<seq2seq4repair_space>id<seq2seq4repair_space>that<seq2seq4repair_space>are<seq2seq4repair_space>going<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>applied<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine." + "<seq2seq4repair_space>Mutually<seq2seq4repair_space>exclusive<seq2seq4repair_space>with<seq2seq4repair_space>affinitygroupnames<seq2seq4repair_space>parameter" ) private List < Long > affinityGroupIdList ; @ ACL @ Parameter ( name = ApiConstants . AFFINITY_GROUP_NAMES , type = CommandType . LIST , collectionType = CommandType . STRING , entityType = AffinityGroupResponse . class , description = "comma<seq2seq4repair_space>separated<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>affinity<seq2seq4repair_space>groups<seq2seq4repair_space>names<seq2seq4repair_space>that<seq2seq4repair_space>are<seq2seq4repair_space>going<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>applied<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>virtual<seq2seq4repair_space>machine." + "Mutually<seq2seq4repair_space>exclusive<seq2seq4repair_space>with<seq2seq4repair_space>affinitygroupids<seq2seq4repair_space>parameter" ) private List < String > affinityGroupNameList ; @ Parameter ( name = ApiConstants . DISPLAY_VM , type = CommandType . BOOLEAN , since = "4.2" , description = "an<seq2seq4repair_space>optional<seq2seq4repair_space>field,<seq2seq4repair_space>whether<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>display<seq2seq4repair_space>the<seq2seq4repair_space>vm<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>end<seq2seq4repair_space>user<seq2seq4repair_space>or<seq2seq4repair_space>not." , authorized = { RoleType . Admin } ) private Boolean displayVm ; @ Parameter ( name = ApiConstants . DETAILS , type = CommandType . MAP , since = "4.3" , description = "used<seq2seq4repair_space>to<seq2seq4repair_space>specify<seq2seq4repair_space>the<seq2seq4repair_space>custom<seq2seq4repair_space>parameters." ) private Map details ; @ Parameter ( name = ApiConstants . DEPLOYMENT_PLANNER , type = CommandType . STRING , description = "Deployment<seq2seq4repair_space>planner<seq2seq4repair_space>to<seq2seq4repair_space>use<seq2seq4repair_space>for<seq2seq4repair_space>vm<seq2seq4repair_space>allocation.<seq2seq4repair_space>Available<seq2seq4repair_space>to<seq2seq4repair_space>ROOT<seq2seq4repair_space>admin<seq2seq4repair_space>only" , since = "4.4" , authorized = { RoleType . Admin } ) private String deploymentPlanner ; public String getAccountName ( ) { } public Long getDiskOfferingId ( ) { } public String getDeploymentPlanner ( ) { } public String getDisplayName ( ) { } public Long getDomainId ( ) { } public Map < String , String > getDetails ( ) { } public String getGroup ( ) { } public HypervisorType getHypervisor ( ) { } public Boolean getDisplayVm ( ) { } @ Override public boolean isDisplay ( ) { } public List < Long > getSecurityGroupIdList ( ) { } public Long getServiceOfferingId ( ) { } public Long getSize ( ) { } public Long getTemplateId ( ) { } public String getUserData ( ) { } public Long getZoneId ( ) { } public List < Long > getNetworkIds ( ) { } public String getName ( ) { } public String getSSHKeyPairName ( ) { } public Long getHostId ( ) { } public boolean getStartVm ( ) { } private Map < Long , IpAddresses > getIpToNetworkMap ( ) { } public String getIp6Address ( ) { } public List < Long > getAffinityGroupIdList ( ) { } @ Override public String getCommandName ( ) { } public static String getResultObjectName ( ) { } @ Override public long getEntityOwnerId ( ) { } @ Override public String getEventType ( ) { } @ Override public String getCreateEventType ( ) { } @ Override public String getCreateEventDescription ( ) { } @ Override public String getEventDescription ( ) { } @ Override public ApiCommandJobType getInstanceType ( ) { } @ Override public void execute ( ) { } private void verifyDetails ( ) { } private void verifyMinAndMaxIops ( String minIops , String maxIops ) { if ( ( ( minIops != null ) && ( maxIops == null ) ) || ( ( minIops == null ) && ( maxIops != null ) ) ) { throw new InvalidParameterValueException ( "Either<seq2seq4repair_space>'Min<seq2seq4repair_space>IOPS'<seq2seq4repair_space>and<seq2seq4repair_space>'Max<seq2seq4repair_space>IOPS'<seq2seq4repair_space>must<seq2seq4repair_space>both<seq2seq4repair_space>be<seq2seq4repair_space>specified<seq2seq4repair_space>or<seq2seq4repair_space>neither<seq2seq4repair_space>be<seq2seq4repair_space>specified." ) ; } long lMinIops ; try { if ( minIops != null ) { <START_BUG> lMinIops = Long . valueOf ( minIops ) ; <END_BUG> } else { lMinIops = 0 ; } } catch ( NumberFormatException ex ) { throw new InvalidParameterValueException ( "'Min<seq2seq4repair_space>IOPS'<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>whole<seq2seq4repair_space>number." ) ; } long lMaxIops ; try { if ( maxIops != null ) { lMaxIops = Long . valueOf ( maxIops ) ; } else { lMaxIops = 0 ; } } catch ( NumberFormatException ex ) { throw new InvalidParameterValueException ( "'Max<seq2seq4repair_space>IOPS'<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>whole<seq2seq4repair_space>number." ) ; } if ( lMinIops > lMaxIops ) { throw new InvalidParameterValueException ( "'Min<seq2seq4repair_space>IOPS'<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>less<seq2seq4repair_space>than<seq2seq4repair_space>or<seq2seq4repair_space>equal<seq2seq4repair_space>to<seq2seq4repair_space>'Max<seq2seq4repair_space>IOPS'." ) ; } } @ Override public void create ( ) throws ResourceAllocationException { } }

Fix:
lMinIops = Long . parseLong ( minIops ) ;