myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r698413 - /myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
Date Wed, 24 Sep 2008 02:06:57 GMT
Author: lu4242
Date: Tue Sep 23 19:06:57 2008
New Revision: 698413

URL: http://svn.apache.org/viewvc?rev=698413&view=rev
Log:
cast to (T) to avoid compilation error in call of newInstance

Modified:
    myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java?rev=698413&r1=698412&r2=698413&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
(original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
Tue Sep 23 19:06:57 2008
@@ -793,7 +793,7 @@
             if (current == null)
             {
                 // nothing to decorate
-                current = ClassUtils.newInstance(implClass);
+                current = (T) ClassUtils.newInstance(implClass);
             }
             else
             {
@@ -827,7 +827,7 @@
                 catch (NoSuchMethodException e)
                 {
                     // no decorator pattern support
-                    current = ClassUtils.newInstance(implClass);
+                    current = (T) ClassUtils.newInstance(implClass);
                 }
             }
         }



Mime
View raw message