openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r736393 - in /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject: InjectableConstructor.java InjectableField.java InjectableMethods.java
Date Wed, 21 Jan 2009 19:54:15 GMT
Author: struberg
Date: Wed Jan 21 11:54:15 2009
New Revision: 736393

URL: http://svn.apache.org/viewvc?rev=736393&view=rev
Log:
OWB-57 remove dead variable assignments

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableConstructor.java
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableField.java
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethods.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableConstructor.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableConstructor.java?rev=736393&r1=736392&r2=736393&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableConstructor.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableConstructor.java
Wed Jan 21 11:54:15 2009
@@ -35,7 +35,6 @@
  * @since 1.0
  * @see AbstractInjectable
  */
-@SuppressWarnings("unchecked")
 public class InjectableConstructor<T> extends AbstractInjectable
 {
     /** Injectable constructor instance */
@@ -83,7 +82,6 @@
 
                     checkParametrizedTypeForInjectionPoint(pt);
 
-                    args = new Type[1];
                     args = pt.getActualTypeArguments();
 
                     clazz = (Class<?>) pt.getRawType();

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableField.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableField.java?rev=736393&r1=736392&r2=736393&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableField.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableField.java
Wed Jan 21 11:54:15 2009
@@ -74,7 +74,6 @@
                 ParameterizedType pt = (ParameterizedType) type;
 
                 checkParametrizedTypeForInjectionPoint(pt);
-                args = new Type[1];
                 args = pt.getActualTypeArguments();
 
                 clazz = (Class<?>) pt.getRawType();
@@ -92,7 +91,7 @@
             field.set(instance, inject(clazz, args, annots));
 
         }
-        catch (Exception e)
+        catch (IllegalAccessException e)
         {
             throw new WebBeansException(e);
         }

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethods.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethods.java?rev=736393&r1=736392&r2=736393&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethods.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethods.java
Wed Jan 21 11:54:15 2009
@@ -76,7 +76,6 @@
                     ParameterizedType pt = (ParameterizedType) type;
 
                     checkParametrizedTypeForInjectionPoint(pt);
-                    args = new Type[1];
                     args = pt.getActualTypeArguments();
 
                     clazz = (Class<?>) pt.getRawType();



Mime
View raw message