fix 4.0 build failure (invalid constructor argument)

Signed-off-by: Edison Su <disheng.su@gmail.com>
This commit is contained in:
Hiroaki Kawai 2012-09-27 22:29:16 -07:00 committed by Edison Su
parent 17c8b648b8
commit 046e916fcf
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}