Author: julien(a)jboss.com
Date: 2007-12-04 06:06:29 -0500 (Tue, 04 Dec 2007)
New Revision: 9276
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIContextImpl.java
Log:
more convenient to use AssertionError than IllegalArgumentException
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIContextImpl.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIContextImpl.java 2007-12-04
11:01:27 UTC (rev 9275)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIContextImpl.java 2007-12-04
11:06:29 UTC (rev 9276)
@@ -177,6 +177,8 @@
private UIObjectImpl createObject(StructuralObject state)
{
Class type = state.getState().getType();
+
+ //
if(type == UIPortal.class)
{
return new UIPortalImpl(this, state);
@@ -195,7 +197,7 @@
}
else
{
- throw new IllegalArgumentException();
+ throw new AssertionError();
}
}
Show replies by date