myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ssilv...@apache.org
Subject svn commit: r391478 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/PhaseListenerManager.java
Date Wed, 05 Apr 2006 04:03:52 GMT
Author: ssilvert
Date: Tue Apr  4 21:03:51 2006
New Revision: 391478

URL: http://svn.apache.org/viewcvs?rev=391478&view=rev
Log:
Replaced JDK 1.5 code

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/PhaseListenerManager.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/PhaseListenerManager.java
URL: http://svn.apache.org/viewcvs/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/PhaseListenerManager.java?rev=391478&r1=391477&r2=391478&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/PhaseListenerManager.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/lifecycle/PhaseListenerManager.java
Tue Apr  4 21:03:51 2006
@@ -44,8 +44,7 @@
     // Tracks success in the beforePhase.  Listeners that throw an exception
     // in beforePhase or were never called because a previous listener threw
     // an exception should not have its afterPhase called
-    private Map<PhaseId, boolean[]> listenerSuccessMap = 
-                new HashMap<PhaseId, boolean[]>();
+    private Map listenerSuccessMap = new HashMap();
     
     /** Creates a new instance of PhaseListenerManager */
     PhaseListenerManager(Lifecycle lifecycle, FacesContext facesContext, PhaseListener[]
phaseListeners) {
@@ -80,7 +79,7 @@
     }
 
     void informPhaseListenersAfter(PhaseId phaseId) {
-        boolean[] beforePhaseSuccess = listenerSuccessMap.get(phaseId);
+        boolean[] beforePhaseSuccess = (boolean[])listenerSuccessMap.get(phaseId);
         
         for (int i = phaseListeners.length - 1; i >= 0; i--)  {
             PhaseListener phaseListener = phaseListeners[i];



Mime
View raw message