Author: jdonnerstag Date: Sat Apr 9 06:27:21 2011 New Revision: 1090532 URL: http://svn.apache.org/viewvc?rev=1090532&view=rev Log: change to not use deprecated methods
Modified: wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java Modified: wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java?rev=1090532&r1=1090531&r2=1090532&view=diff ============================================================================== --- wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java (original) +++ wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java Sat Apr 9 06:27:21 2011 @@ -88,7 +88,7 @@ public class DataTable<T> extends Panel String className = getCssClass(); if (!Strings.isEmpty(className)) { - CharSequence oldClassName = tag.getString("class"); + CharSequence oldClassName = tag.getAttribute("class"); if (Strings.isEmpty(oldClassName)) { tag.put("class", className); @@ -141,6 +141,7 @@ public class DataTable<T> extends Panel { private static final long serialVersionUID = 1L; + @SuppressWarnings({ "rawtypes", "unchecked" }) @Override protected Item newCellItem(final String id, final int index, final IModel model) { Modified: wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java?rev=1090532&r1=1090531&r2=1090532&view=diff ============================================================================== --- wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java (original) +++ wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java Sat Apr 9 06:27:21 2011 @@ -88,6 +88,7 @@ public class TabbedPanel extends Panel * @param tabs * list of ITab objects used to represent tabs */ + @SuppressWarnings("unchecked") public TabbedPanel(final String id, final List<? extends ITab> tabs) { super(id, new Model<Integer>(-1)); @@ -172,7 +173,7 @@ public class TabbedPanel extends Panel protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); - String cssClass = (String)tag.getString("class"); + String cssClass = tag.getAttribute("class"); if (cssClass == null) { cssClass = " ";