myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1793928 - in /myfaces/core/branches/2.3.x/api/src/main/java/javax/faces: context/ExternalContext.java context/ExternalContextWrapper.java validator/Validator.java
Date Thu, 04 May 2017 23:18:47 GMT
Author: lu4242
Date: Thu May  4 23:18:47 2017
New Revision: 1793928

URL: http://svn.apache.org/viewvc?rev=1793928&view=rev
Log:
small fix add generics to Validator and init parameter map

Modified:
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContext.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContextWrapper.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/validator/Validator.java

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContext.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContext.java?rev=1793928&r1=1793927&r2=1793928&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContext.java
(original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContext.java
Thu May  4 23:18:47 2017
@@ -182,8 +182,7 @@ public abstract class ExternalContext
 
     public abstract String getInitParameter(String name);
 
-    // FIXME: Notify EG about generic usage
-    public abstract Map getInitParameterMap();
+    public abstract Map<String,String> getInitParameterMap();
 
     /**
      * @since JSF 2.0

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContextWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContextWrapper.java?rev=1793928&r1=1793927&r2=1793928&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContextWrapper.java
(original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/context/ExternalContextWrapper.java
Thu May  4 23:18:47 2017
@@ -147,7 +147,7 @@ public abstract class ExternalContextWra
     }
 
     @Override
-    public Map getInitParameterMap()
+    public Map<String, String> getInitParameterMap()
     {
         return getWrapped().getInitParameterMap();
     }

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/validator/Validator.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/validator/Validator.java?rev=1793928&r1=1793927&r2=1793928&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/validator/Validator.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/validator/Validator.java Thu
May  4 23:18:47 2017
@@ -25,12 +25,12 @@ import java.util.EventListener;
 /**
  * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF
Specification</a>
  */
-public interface Validator extends EventListener
+public interface Validator<T> extends EventListener
 {
     /**
      * @deprecated
      */
     public static final String NOT_IN_RANGE_MESSAGE_ID = "javax.faces.validator.NOT_IN_RANGE";
 
-    public void validate(FacesContext context, UIComponent component, Object value) throws
ValidatorException;
+    public void validate(FacesContext context, UIComponent component, T value) throws ValidatorException;
 }



Mime
View raw message