You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pa...@apache.org on 2022/10/11 14:19:27 UTC

[myfaces] branch 2.3-next updated: MYFACES-4474: remove setType validation

This is an automated email from the ASF dual-hosted git repository.

paulnicolucci pushed a commit to branch 2.3-next
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3-next by this push:
     new 752e3954f MYFACES-4474: remove setType validation
     new 08165039a Merge pull request #334 from pnicolucci/MYFACES-4474-23Next
752e3954f is described below

commit 752e3954f46368da2868c4ecad7f3d6476bb528f
Author: Paul Nicolucci <pn...@gmail.com>
AuthorDate: Tue Oct 11 09:22:02 2022 -0400

    MYFACES-4474: remove setType validation
---
 api/src/main/java/javax/faces/convert/NumberConverter.java | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/api/src/main/java/javax/faces/convert/NumberConverter.java b/api/src/main/java/javax/faces/convert/NumberConverter.java
index 6789375eb..73bb4f9b6 100755
--- a/api/src/main/java/javax/faces/convert/NumberConverter.java
+++ b/api/src/main/java/javax/faces/convert/NumberConverter.java
@@ -29,7 +29,6 @@ import java.util.Currency;
 import java.util.Locale;
 
 import javax.el.ValueExpression;
-import javax.faces.FacesException;
 import javax.faces.component.PartialStateHolder;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
@@ -579,12 +578,6 @@ public class NumberConverter implements Converter, PartialStateHolder
 
     public void setType(String type)
     {
-        if (type != null && type.length() > 0
-                && (!"number".equals(type) && !"currency".equals(type) && !"percent".equals(type)))
-        {
-            throw new FacesException("Uknown type: " + type);
-        }
-        
         _type = type;
         clearInitialState();
     }