Updated Branches: refs/heads/4.0 17c8b648b -> 046e916fc
fix 4.0 build failure (invalid constructor argument) Signed-off-by: Edison Su <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/046e916f Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/046e916f Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/046e916f Branch: refs/heads/4.0 Commit: 046e916fcf6d847e2cdf281233d2e68a8e6500f8 Parents: 17c8b64 Author: Hiroaki Kawai <[email protected]> Authored: Thu Sep 27 22:29:16 2012 -0700 Committer: Edison Su <[email protected]> Committed: Thu Sep 27 22:29:16 2012 -0700 ---------------------------------------------------------------------- .../com/cloud/network/rules/RulesManagerImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/046e916f/server/src/com/cloud/network/rules/RulesManagerImpl.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/network/rules/RulesManagerImpl.java b/server/src/com/cloud/network/rules/RulesManagerImpl.java index 37cae90..2383366 100755 --- a/server/src/com/cloud/network/rules/RulesManagerImpl.java +++ b/server/src/com/cloud/network/rules/RulesManagerImpl.java @@ -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"); } }
