myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r511490 - in /myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit: RenderKitFactoryImpl.java html/HtmlRenderKitImpl.java
Date Sun, 25 Feb 2007 12:45:24 GMT
Author: mbr
Date: Sun Feb 25 04:45:23 2007
New Revision: 511490

URL: http://svn.apache.org/viewvc?view=rev&rev=511490
Log:
generic types

Modified:
    myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/RenderKitFactoryImpl.java
    myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java

Modified: myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/RenderKitFactoryImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/RenderKitFactoryImpl.java?view=diff&rev=511490&r1=511489&r2=511490
==============================================================================
--- myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/RenderKitFactoryImpl.java
(original)
+++ myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/RenderKitFactoryImpl.java
Sun Feb 25 04:45:23 2007
@@ -36,7 +36,7 @@
 {
     private static final Log log = LogFactory.getLog(RenderKitFactoryImpl.class);
 
-    private Map _renderkits = new HashMap();
+    private Map<String, RenderKit> _renderkits = new HashMap<String, RenderKit>();
 
     public RenderKitFactoryImpl()
     {
@@ -62,7 +62,7 @@
             throws FacesException
     {
         if (renderKitId == null) throw new NullPointerException("renderKitId");
-        RenderKit renderkit = (RenderKit)_renderkits.get(renderKitId);
+        RenderKit renderkit = _renderkits.get(renderKitId);
         if (renderkit == null)
         {
             //throw new IllegalArgumentException("Unknown RenderKit '" + renderKitId + "'.");
@@ -76,7 +76,7 @@
     }
 
 
-    public Iterator getRenderKitIds()
+    public Iterator<String> getRenderKitIds()
     {
         return _renderkits.keySet().iterator();
     }

Modified: myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java?view=diff&rev=511490&r1=511489&r2=511490
==============================================================================
--- myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java
(original)
+++ myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java
Sun Feb 25 04:45:23 2007
@@ -42,14 +42,14 @@
 
     //~ Instance fields ----------------------------------------------------------------------------
 
-    private Map _renderers;
+    private Map<String, Renderer> _renderers;
     private ResponseStateManager _responseStateManager;
 
     //~ Constructors -------------------------------------------------------------------------------
 
     public HtmlRenderKitImpl()
     {
-        _renderers = new HashMap();
+        _renderers = new HashMap<String, Renderer>();
         _responseStateManager = new HtmlResponseStateManager();
     }
 
@@ -70,7 +70,7 @@
         {
             throw new NullPointerException("renderer type must not be null.");
         }
-        Renderer renderer = (Renderer) _renderers.get(key(componentFamily, rendererType));
+        Renderer renderer = _renderers.get(key(componentFamily, rendererType));
         if (renderer == null)
         {
             log.warn("Unsupported component-family/renderer-type: " + componentFamily + "/"
+ rendererType);



Mime
View raw message