myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1523343 - /myfaces/core/trunk/api/src/main/java/javax/faces/application/FacesMessage.java
Date Sat, 14 Sep 2013 22:23:49 GMT
Author: lu4242
Date: Sat Sep 14 22:23:49 2013
New Revision: 1523343

URL: http://svn.apache.org/r1523343
Log:
MYFACES-3768 FacesMessage Severity ordinal values are not consistent with Mojarra RI 

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/application/FacesMessage.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/application/FacesMessage.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/application/FacesMessage.java?rev=1523343&r1=1523342&r2=1523343&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/application/FacesMessage.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/application/FacesMessage.java Sat Sep
14 22:23:49 2013
@@ -66,22 +66,22 @@ public class FacesMessage implements Ser
     /**
      * Message severity level indicating an informational message rather than an error.
      */
-    public static final FacesMessage.Severity SEVERITY_INFO = new Severity("INFO", 1);
+    public static final FacesMessage.Severity SEVERITY_INFO = new Severity("INFO", 0);
 
     /**
      * Message severity level indicating that an error might have occurred.
      */
-    public static final FacesMessage.Severity SEVERITY_WARN = new Severity("WARN", 2);
+    public static final FacesMessage.Severity SEVERITY_WARN = new Severity("WARN", 1);
 
     /**
      * Message severity level indicating that an error has occurred.
      */
-    public static final FacesMessage.Severity SEVERITY_ERROR = new Severity("ERROR", 3);
+    public static final FacesMessage.Severity SEVERITY_ERROR = new Severity("ERROR", 2);
 
     /**
      * Message severity level indicating that a serious error has occurred.
      */
-    public static final FacesMessage.Severity SEVERITY_FATAL = new Severity("FATAL", 4);
+    public static final FacesMessage.Severity SEVERITY_FATAL = new Severity("FATAL", 3);
 
     /**
      * Immutable <code>Lis</code> of valid {@link FacesMessage.Severity}instances,
in ascending order of their ordinal



Mime
View raw message