You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/03/06 19:27:23 UTC
svn commit: r515241 -
/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java
Author: ehillenius
Date: Tue Mar 6 10:27:22 2007
New Revision: 515241
URL: http://svn.apache.org/viewvc?view=rev&rev=515241
Log:
signature was changed, but we want to keep the old one (as a final) to help people migrate.
Modified:
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java
Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java?view=diff&rev=515241&r1=515240&r2=515241
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Component.java Tue Mar 6 10:27:22 2007
@@ -773,6 +773,17 @@
}
/**
+ * @return nothing, will always throw an exception. Use
+ * {@link #getConverter(Class)} instead.
+ * @deprecated To be removed. Please use/ override
+ * {@link #getConverter(Class)} instead.
+ */
+ public final IConverter getConverter()
+ {
+ throw new UnsupportedOperationException("use #getConverter(Class) instead");
+ }
+
+ /**
* Gets the converter that should be used by this component.
*
* @param type
@@ -780,7 +791,7 @@
*
* @return The converter that should be used by this component
*/
- public IConverter getConverter(Class/*<?>*/ type)
+ public IConverter getConverter(Class/* <?> */type)
{
return getSession().getConverter(type);
}