openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1680186 - in /openwebbeans/trunk: webbeans-impl/src/main/java/org/apache/webbeans/config/ webbeans-impl/src/main/java/org/apache/webbeans/inject/ webbeans-impl/src/test/java/org/apache/webbeans/test/ webbeans-impl/src/test/java/org/apache/...
Date Tue, 19 May 2015 06:46:16 GMT
Author: struberg
Date: Tue May 19 06:46:16 2015
New Revision: 1680186

URL: http://svn.apache.org/r1680186
Log:
remove unecessary throws clauses

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/OWBInjector.java
    openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/AbstractUnitTest.java
    openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/portable/javaee/JavaEeInjectionTest.java
    openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/TomcatUtil.java
    openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat7/TomcatUtil.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java?rev=1680186&r1=1680185&r2=1680186&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
Tue May 19 06:46:16 2015
@@ -1069,7 +1069,7 @@ public class BeansDeployer
      * @param annotatedTypes the AnnotatedTypes which got discovered so far and are not vetoed
      * @throws ClassNotFoundException if class not found
      */
-    protected void deployFromAnnotatedTypes(Map<AnnotatedType<?>, AnnotatedTypeData<?>>
annotatedTypes) throws ClassNotFoundException
+    protected void deployFromAnnotatedTypes(Map<AnnotatedType<?>, AnnotatedTypeData<?>>
annotatedTypes)
     {
         logger.fine("Deploying configurations from class files has started.");
 

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/OWBInjector.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/OWBInjector.java?rev=1680186&r1=1680185&r2=1680186&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/OWBInjector.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/OWBInjector.java
Tue May 19 06:46:16 2015
@@ -45,7 +45,6 @@ public final class OWBInjector
      */
     @SuppressWarnings("unchecked")
     public static void inject(BeanManager beanManager, Object instanceUnderInjection, CreationalContext<?>
ownerCreationalContext)
-            throws Exception
     {
         CreationalContext<?> creationalContext = ownerCreationalContext;
         if(creationalContext == null)

Modified: openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/AbstractUnitTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/AbstractUnitTest.java?rev=1680186&r1=1680185&r2=1680186&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/AbstractUnitTest.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/AbstractUnitTest.java
Tue May 19 06:46:16 2015
@@ -154,14 +154,7 @@ public abstract class AbstractUnitTest
 
     public void inject(final Object bean)
     {
-        try
-        {
-            OWBInjector.inject(getBeanManager(), bean, null);
-        }
-        catch (final Exception e)
-        {
-            throw new WebBeansConfigurationException(e);
-        }
+        OWBInjector.inject(getBeanManager(), bean, null);
     }
 
     protected ContainerLifecycle getLifecycle()

Modified: openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/portable/javaee/JavaEeInjectionTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/portable/javaee/JavaEeInjectionTest.java?rev=1680186&r1=1680185&r2=1680186&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/portable/javaee/JavaEeInjectionTest.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/portable/javaee/JavaEeInjectionTest.java
Tue May 19 06:46:16 2015
@@ -30,7 +30,7 @@ import org.junit.Test;
 public class JavaEeInjectionTest extends AbstractUnitTest
 {
     @Test
-    public void testInjectionTarget() throws Exception
+    public void testInjectionTarget()
     {
         Collection<Class<?>> classes = new ArrayList<Class<?>>();
         classes.add(SampleBean.class);

Modified: openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/TomcatUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/TomcatUtil.java?rev=1680186&r1=1680185&r2=1680186&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/TomcatUtil.java
(original)
+++ openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/TomcatUtil.java
Tue May 19 06:46:16 2015
@@ -28,7 +28,7 @@ import javax.enterprise.inject.spi.Produ
 
 public class TomcatUtil
 {
-    public static Object inject(Object object, ClassLoader loader) throws Exception
+    public static Object inject(Object object, ClassLoader loader)
     {
         final ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
         Thread.currentThread().setContextClassLoader(loader);
@@ -46,7 +46,7 @@ public class TomcatUtil
         return new Instance(object, context);
     }
 
-    public static void destroy(Object injectorInstance, ClassLoader loader) throws Exception
+    public static void destroy(Object injectorInstance, ClassLoader loader)
     {
         final Instance instance = (TomcatUtil.Instance) injectorInstance;
         final ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();

Modified: openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat7/TomcatUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat7/TomcatUtil.java?rev=1680186&r1=1680185&r2=1680186&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat7/TomcatUtil.java
(original)
+++ openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat7/TomcatUtil.java
Tue May 19 06:46:16 2015
@@ -28,7 +28,7 @@ import javax.enterprise.inject.spi.Produ
 
 public class TomcatUtil
 {
-    public static Object inject(Object object, ClassLoader loader) throws Exception
+    public static Object inject(Object object, ClassLoader loader)
     {
         final ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
         Thread.currentThread().setContextClassLoader(loader);
@@ -46,7 +46,7 @@ public class TomcatUtil
         return new Instance(object, context);
     }
     
-    public static void destroy(Object injectorInstance, ClassLoader loader) throws Exception
+    public static void destroy(Object injectorInstance, ClassLoader loader)
     {
         final Instance instance = (TomcatUtil.Instance) injectorInstance;
         final ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();



Mime
View raw message