mirror of https://github.com/apache/cloudstack.git
fix 4.0 build failure (invalid constructor argument)
Signed-off-by: Edison Su <disheng.su@gmail.com>
This commit is contained in:
parent
17c8b648b8
commit
046e916fcf
|
|
@ -255,11 +255,11 @@ public class RulesManagerImpl implements RulesManager, RulesService, Manager {
|
|||
if (validatePortRange) {
|
||||
//source start port and source dest port should be the same. The same applies to dest ports
|
||||
if (rule.getSourcePortStart().intValue() != rule.getDestinationPortStart()) {
|
||||
throw new InvalidParameterValueException("Private port start should be equal to public port start", null);
|
||||
throw new InvalidParameterValueException("Private port start should be equal to public port start");
|
||||
}
|
||||
|
||||
if (rule.getSourcePortEnd().intValue() != rule.getDestinationPortEnd()) {
|
||||
throw new InvalidParameterValueException("Private port end should be equal to public port end", null);
|
||||
throw new InvalidParameterValueException("Private port end should be equal to public port end");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue