[portal-commits] JBoss Portal SVN: r11820 - branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal.
portal-commits at lists.jboss.org
portal-commits at lists.jboss.org
Fri Sep 5 12:52:34 EDT 2008
Author: chris.laprun at jboss.com
Date: 2008-09-05 12:52:34 -0400 (Fri, 05 Sep 2008)
New Revision: 11820
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectImpl.java
Log:
- Minor.
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectImpl.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectImpl.java 2008-09-05 16:34:41 UTC (rev 11819)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectImpl.java 2008-09-05 16:52:34 UTC (rev 11820)
@@ -506,19 +506,13 @@
public String getDeclaredProperty(String name)
{
- if (name == null)
- {
- throw new IllegalArgumentException();
- }
- return (String)declaredPropertyMap.get(name);
+ ParameterValidation.throwIllegalArgExceptionIfNull(name, "property name");
+ return declaredPropertyMap.get(name);
}
public void setDeclaredProperty(String name, String value)
{
- if (name == null)
- {
- throw new IllegalArgumentException();
- }
+ ParameterValidation.throwIllegalArgExceptionIfNull(name, "property name");
if (value == null)
{
declaredPropertyMap.remove(name);
More information about the portal-commits
mailing list