deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject git commit: DELTASPIKE-405 remove generics info from producer to match all injection points of this type
Date Wed, 28 Aug 2013 09:55:50 GMT
Updated Branches:
  refs/heads/master b33e61cf7 -> 878eab3a8


DELTASPIKE-405 remove generics info from producer to match all injection points of this type


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/878eab3a
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/878eab3a
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/878eab3a

Branch: refs/heads/master
Commit: 878eab3a8ea7d76e0d0a2672882597e3a3dbeb78
Parents: b33e61c
Author: Mark Struberg <struberg@localhost.localdomain>
Authored: Wed Aug 28 11:54:58 2013 +0200
Committer: Mark Struberg <struberg@localhost.localdomain>
Committed: Wed Aug 28 11:54:58 2013 +0200

----------------------------------------------------------------------
 .../apache/deltaspike/jsf/impl/message/DefaultJsfMessage.java  | 2 ++
 .../apache/deltaspike/jsf/impl/message/JsfMessageProducer.java | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/878eab3a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/DefaultJsfMessage.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/DefaultJsfMessage.java
b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/DefaultJsfMessage.java
index c45a739..ed96b8e 100644
--- a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/DefaultJsfMessage.java
+++ b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/DefaultJsfMessage.java
@@ -19,6 +19,7 @@
 package org.apache.deltaspike.jsf.impl.message;
 
 
+import javax.enterprise.inject.Typed;
 import javax.faces.application.FacesMessage;
 import javax.faces.component.UIComponent;
 
@@ -34,6 +35,7 @@ import org.apache.deltaspike.jsf.api.message.JsfMessage;
  * The complexity of setting the FacesMessage is
  * done in the {@link JsfMessageBundleInvocationHandler}.
  */
+@Typed
 public class DefaultJsfMessage<T> implements JsfMessage<T>
 {
     private final String clientId;

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/878eab3a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/JsfMessageProducer.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/JsfMessageProducer.java
b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/JsfMessageProducer.java
index 8751468..63b48f9 100644
--- a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/JsfMessageProducer.java
+++ b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/message/JsfMessageProducer.java
@@ -37,8 +37,8 @@ public class JsfMessageProducer
 {
     @Produces
     @Dependent
-    public <M> JsfMessage<M> createJsfMessage(InjectionPoint injectionPoint,
-                                              MessageBundleInvocationHandler invocationHandler)
+    public JsfMessage createJsfMessage(InjectionPoint injectionPoint,
+                                       MessageBundleInvocationHandler invocationHandler)
     {
         if (!(injectionPoint.getType() instanceof ParameterizedType))
         {
@@ -53,7 +53,7 @@ public class JsfMessageProducer
         try
         {
             @SuppressWarnings("unchecked")
-            Class<M> type = (Class<M>) actualTypes[0];
+            Class<?> type = (Class<?>) actualTypes[0];
             return createJsfMessageFor(injectionPoint, type, invocationHandler);
         }
         catch (ClassCastException e)


Mime
View raw message