myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: cosmetics
Date Mon, 19 Aug 2019 15:53:29 GMT
This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new edac455  cosmetics
edac455 is described below

commit edac4553f29890e42833c1fa4e7f741e8d2c8009
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Mon Aug 19 17:53:21 2019 +0200

    cosmetics
---
 .../myfaces/cdi/converter/FacesConverterProducer.java  | 18 +++++++++---------
 .../myfaces/cdi/validator/FacesValidatorProducer.java  | 12 ++++++------
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/cdi/converter/FacesConverterProducer.java
b/impl/src/main/java/org/apache/myfaces/cdi/converter/FacesConverterProducer.java
index 90221c1..437555a 100644
--- a/impl/src/main/java/org/apache/myfaces/cdi/converter/FacesConverterProducer.java
+++ b/impl/src/main/java/org/apache/myfaces/cdi/converter/FacesConverterProducer.java
@@ -35,24 +35,24 @@ import org.apache.myfaces.util.lang.ClassUtils;
 @Typed
 public class FacesConverterProducer extends AbstractDynamicProducer<Converter>
 {
-    public FacesConverterProducer(BeanManager beanManager, FacesConverterInfo typeInfo)
+    public FacesConverterProducer(BeanManager beanManager, FacesConverterInfo info)
     {
         super(beanManager);
         
-        String forClass = typeInfo.getForClass() == null ? "" : 
-                ((typeInfo.getForClass() == Object.class) ? "" : typeInfo.getForClass().getName());
-        String converterId = typeInfo.getConverterId() == null ? "" : typeInfo.getConverterId();
-        String id = "" + typeInfo.getType() + '_' + forClass + '_' + converterId;
+        String forClass = info.getForClass() == null ? "" : 
+                ((info.getForClass() == Object.class) ? "" : info.getForClass().getName());
+        String converterId = info.getConverterId() == null ? "" : info.getConverterId();
+        String id = "" + info.getType() + '_' + forClass + '_' + converterId;
 
         FacesConverterAnnotationLiteral literal = new FacesConverterAnnotationLiteral(
-                        typeInfo.getForClass() == null ? Object.class : typeInfo.getForClass(),

-                        typeInfo.getConverterId() == null ? "" : typeInfo.getConverterId(),
true);
+                        info.getForClass() == null ? Object.class : info.getForClass(), 
+                        info.getConverterId() == null ? "" : info.getConverterId(), true);
 
         super.id(id)
                 .scope(Dependent.class)
                 .qualifiers(literal)
-                .types(typeInfo.getType(), Object.class)
-                .beanClass(ClassUtils.simpleClassForName(typeInfo.getType().getTypeName()))
+                .types(info.getType(), Object.class)
+                .beanClass(ClassUtils.simpleClassForName(info.getType().getTypeName()))
                 .create(e -> createConverter(e));
     }
 
diff --git a/impl/src/main/java/org/apache/myfaces/cdi/validator/FacesValidatorProducer.java
b/impl/src/main/java/org/apache/myfaces/cdi/validator/FacesValidatorProducer.java
index aec850a..698600e 100644
--- a/impl/src/main/java/org/apache/myfaces/cdi/validator/FacesValidatorProducer.java
+++ b/impl/src/main/java/org/apache/myfaces/cdi/validator/FacesValidatorProducer.java
@@ -35,21 +35,21 @@ import org.apache.myfaces.util.lang.ClassUtils;
 @Typed
 public class FacesValidatorProducer extends AbstractDynamicProducer<Validator>
 {
-    public FacesValidatorProducer(BeanManager beanManager, FacesValidatorInfo typeInfo)
+    public FacesValidatorProducer(BeanManager beanManager, FacesValidatorInfo info)
     {
         super(beanManager);
         
-        String validatorId = typeInfo.getValidatorId() == null ? "" : typeInfo.getValidatorId();
-        String id = "" + typeInfo.getType() + '_' + validatorId;
+        String validatorId = info.getValidatorId() == null ? "" : info.getValidatorId();
+        String id = "" + info.getType() + '_' + validatorId;
 
         FacesValidatorAnnotationLiteral literal = new FacesValidatorAnnotationLiteral(
-                        typeInfo.getValidatorId() == null ? "" : typeInfo.getValidatorId(),
false, true);
+                        info.getValidatorId() == null ? "" : info.getValidatorId(), false,
true);
 
         super.id(id)
                 .scope(Dependent.class)
                 .qualifiers(literal)
-                .types(typeInfo.getType(), Object.class)
-                .beanClass(ClassUtils.simpleClassForName(typeInfo.getType().getTypeName()))
+                .types(info.getType(), Object.class)
+                .beanClass(ClassUtils.simpleClassForName(info.getType().getTypeName()))
                 .create(e -> createValidator(e));
     }
 


Mime
View raw message